Until this line that starts with DS changes to DSyour_smtp_server, it won't work.# "Smart" relay host (may be null)
DS
setting up outgoing mail
Re: setting up outgoing mail
Indeed, the smart_host value in the .cf file is empty:
- Guillaume Boudreau
Re: setting up outgoing mail
I corrected the back ticks by pasting as suggested
see:
sendmail.mc
http://fpaste.org/oCVF/
sendmail.cf
http://fpaste.org/hGKN/
maillog
http:/fpaste.org/xx40
The most recent maillog entry reads:
Jul 8 12:27:50 localhost sendmail[17238]: o68HQQXI017236: to=<baldwin_rl@yahoo.com>, ctladdr=<apache@localhost.localdomain> (48/100), delay=00:01:24, xdelay=00:01:24, mailer=relay, pri=120657, relay=plus.smtp.mail.fy4.b.yahoo.com. [98.136.44.53], dsn=4.0.0, stat=Deferred: Connection timed out with plus.smtp.mail.fy4.b.yahoo.com.
Any other thoughts/suggestions. Thanks again for your hellp.
see:
sendmail.mc
http://fpaste.org/oCVF/
sendmail.cf
http://fpaste.org/hGKN/
maillog
http:/fpaste.org/xx40
The most recent maillog entry reads:
Jul 8 12:27:50 localhost sendmail[17238]: o68HQQXI017236: to=<baldwin_rl@yahoo.com>, ctladdr=<apache@localhost.localdomain> (48/100), delay=00:01:24, xdelay=00:01:24, mailer=relay, pri=120657, relay=plus.smtp.mail.fy4.b.yahoo.com. [98.136.44.53], dsn=4.0.0, stat=Deferred: Connection timed out with plus.smtp.mail.fy4.b.yahoo.com.
Any other thoughts/suggestions. Thanks again for your hellp.
Re: setting up outgoing mail
Remove the square brackets around [plus.smtp.mail.yahoo.com] in sendmail.mc
It seems your server can't reach plus.smtp.mail.fy4.b.yahoo.com
Try:
Are those working? It should say:
Hit Ctrl-] then type "quit" to quit telnet.
It seems your server can't reach plus.smtp.mail.fy4.b.yahoo.com
Try:
Code: Select all
telnet plus.smtp.mail.fy4.b.yahoo.com 25
Code: Select all
telnet plus.smtp.mail.fy4.b.yahoo.com 465
Code: Select all
Trying 76.13.13.48...
Connected to plus.smtp.mail.fy4.b.yahoo.com.
Escape character is '^]'.
- Guillaume Boudreau
Re: setting up outgoing mail
When I try telnet plus.smtp.mail.fy4.b.yahoo.com 25
it tries to connect and then times out
When I try telnet plus.smtp.mail.fy4.b.yahoo.com 465
it connects as expected
I also tried this with my other email account (smtpout.secureserver.net) with the same result
I removed the brackets from around the smtp address and now in the cf file, "Smart" relay host has my smtp address immediately after DS.
I restarted the server and tried again. Below is the most recent lines from the maillog...
It says in the last line, "Connection refused by hda.baldwin.com"
Jul 8 17:11:53 localhost sendmail[20637]: o68MBrG2020637: from=apache, size=453, class=0, nrcpts=1, msgid=<201007082211.o68MBrG2020637@localhost.localdomain>, relay=apache@localhost
Jul 8 17:11:54 localhost sendmail[20639]: o68MBrIu020639: from=<apache@localhost.localdomain>, size=663, class=0, nrcpts=1, msgid=<201007082211.o68MBrG2020637@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 8 17:11:54 localhost sendmail[20637]: o68MBrG2020637: to=baldwin_rl@yahoo.com, ctladdr=apache (48/100), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30453, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o68MBrIu020639 Message accepted for delivery)
Jul 8 17:12:14 localhost sendmail[20641]: o68MBrIu020639: to=<baldwin_rl@yahoo.com>, ctladdr=<apache@localhost.localdomain> (48/100), delay=00:00:21, xdelay=00:00:20, mailer=relay, pri=120663, relay=hda.baldwin.com. [10.0.1.10], dsn=4.0.0, stat=Deferred: Connection refused by hda.baldwin.com.
it tries to connect and then times out
When I try telnet plus.smtp.mail.fy4.b.yahoo.com 465
it connects as expected
I also tried this with my other email account (smtpout.secureserver.net) with the same result
I removed the brackets from around the smtp address and now in the cf file, "Smart" relay host has my smtp address immediately after DS.
I restarted the server and tried again. Below is the most recent lines from the maillog...
It says in the last line, "Connection refused by hda.baldwin.com"
Jul 8 17:11:53 localhost sendmail[20637]: o68MBrG2020637: from=apache, size=453, class=0, nrcpts=1, msgid=<201007082211.o68MBrG2020637@localhost.localdomain>, relay=apache@localhost
Jul 8 17:11:54 localhost sendmail[20639]: o68MBrIu020639: from=<apache@localhost.localdomain>, size=663, class=0, nrcpts=1, msgid=<201007082211.o68MBrG2020637@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 8 17:11:54 localhost sendmail[20637]: o68MBrG2020637: to=baldwin_rl@yahoo.com, ctladdr=apache (48/100), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30453, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o68MBrIu020639 Message accepted for delivery)
Jul 8 17:12:14 localhost sendmail[20641]: o68MBrIu020639: to=<baldwin_rl@yahoo.com>, ctladdr=<apache@localhost.localdomain> (48/100), delay=00:00:21, xdelay=00:00:20, mailer=relay, pri=120663, relay=hda.baldwin.com. [10.0.1.10], dsn=4.0.0, stat=Deferred: Connection refused by hda.baldwin.com.
Re: setting up outgoing mail
I'm guessing your ISP is blocking outgoing connections to port 25 (many ISPs do that to prevent spam). Thus why telnet to port 25 fails, and to port 465 it works.
Your previous maillog showed it couldn't connect to that host, so I'm guessing it's because it was trying to connect to port 25, and not 465. Don't know why; all I found on Google was the two lines I gave you that say TCP $h 465.
Your last maillog paste seems to try to relay the email to hda.baldwin.com (your LAN IP address), instead of relaying to the yahoo.com SMTP... Not sure why it would do that... Maybe it thinks that email address is local for some reason.
At this point, I suggest you try sendmail's own support channels: http://www.sendmail.org/support/usenet
They'll be more useful than we can be, I'd guess.
Your previous maillog showed it couldn't connect to that host, so I'm guessing it's because it was trying to connect to port 25, and not 465. Don't know why; all I found on Google was the two lines I gave you that say TCP $h 465.
Your last maillog paste seems to try to relay the email to hda.baldwin.com (your LAN IP address), instead of relaying to the yahoo.com SMTP... Not sure why it would do that... Maybe it thinks that email address is local for some reason.
At this point, I suggest you try sendmail's own support channels: http://www.sendmail.org/support/usenet
They'll be more useful than we can be, I'd guess.
- Guillaume Boudreau
Re: setting up outgoing mail
Thanks for all of your help. I am giving up on sendmail.
Do you think that postfix might work where sendmail did not?
Do you think that postfix might work where sendmail did not?
Re: setting up outgoing mail
I never tried to use a smart relay on Postfix, so I don't know.
I know that using my ISP SMTP is very easy using sendmail: a single SMART_HOST line in sendmail.cf
BTW, yesterday, I've read that sendmail doesn't do SSL (port 465), it only do TLS/STARTTLS (port 587).
So trying to make it connect to port 465 is futile; it wouldn't be able to understand the language the server talks in on that port.
You servers should offer both (plus port 25) anyway.
I know that using my ISP SMTP is very easy using sendmail: a single SMART_HOST line in sendmail.cf
BTW, yesterday, I've read that sendmail doesn't do SSL (port 465), it only do TLS/STARTTLS (port 587).
So trying to make it connect to port 465 is futile; it wouldn't be able to understand the language the server talks in on that port.
You servers should offer both (plus port 25) anyway.
- Guillaume Boudreau
Re: setting up outgoing mail
I am happy to say that I finally got it to work. The problem was that I could not send mail out on port 25. After trying a multitude of ideas posted on the internet I came across one that actually worked for me. Many of the suggestion were not successful in making it possible to send mail out on port 587---what is listed is the only one that was. It requires an active google mail account/email to work.
What follows is code posted by Wardmundy on the "PBX in a flash" forum located at: http://pbxinaflash.com/forum/showthread ... ight=gmail Prior to doing the steps listed by Wardmundy, I executed:
Other than that, follow the steps exactly as listed and it will work...

What follows is code posted by Wardmundy on the "PBX in a flash" forum located at: http://pbxinaflash.com/forum/showthread ... ight=gmail Prior to doing the steps listed by Wardmundy, I executed:
Code: Select all
yum -y install sendmail-cf m4
FINALLY!This tutorial is for PBX in a Flash systems only and assumes you already have performed the email fixup steps outlined in this Nerd Vittles tutorial. If not, do that first. Then log into your server as root and issue the following commands in order:
Now you should be back in business. Special thanks to Linux Home Automation for all the helpful information.Code: Select all
cd /etc/mail hostname -f > genericsdomain touch genericstable makemap -r hash genericstable.db < genericstable mv sendmail.mc sendmail.mc.original wget http://pbxinaflash.net/source/sendmail/sendmail.mc.gmail cp sendmail.mc.gmail sendmail.mc mkdir -p auth chmod 700 auth cd auth echo AuthInfo:smtp.gmail.com "U:smmsp" "I:user_id" "P:password" "M:PLAIN" > client-info echo AuthInfo:smtp.gmail.com:587 "U:smmsp" "I:user_id" "P:password" "M:PLAIN" >> client-info echo AuthInfo:smtp.gmail.com:465 "U:smmsp" "I:user_id" "P:password" "M:PLAIN" >> client-info # Stop here and edit client-info (nano -w client-info) in both lines. # Replace user_id with your gMail account name without @gmail.com # Replace password with your real gMail password # Be sure to replace the double-quotes shown above if they don't appear in the file!!! # Save your changes (Ctrl-X, Y, then Enter) chmod 600 client-info makemap -r hash client-info.db < client-info cd .. make service sendmail restart

Re: setting up outgoing mail
Thanks for that.
Using a diff with the sendmail.mc.gmail linked in your post, I was able to create simple copy-paste instructions to do this.
Update the wiki page to reflect the needed changes: http://wiki.amahi.org/index.php/Enable_Outgoing_Emails
Using a diff with the sendmail.mc.gmail linked in your post, I was able to create simple copy-paste instructions to do this.
Update the wiki page to reflect the needed changes: http://wiki.amahi.org/index.php/Enable_Outgoing_Emails
- Guillaume Boudreau
Re: setting up outgoing mail
I recently used the steps described above to get sendmail working on Fedora 19 Amahi install. Still works great. I had to ad the following command as sendmail was not staring at boot:
chkconfig sendmail on
once that was run as root, sendmail works as described and starts at boot.
chkconfig sendmail on
once that was run as root, sendmail works as described and starts at boot.
Who is online
Users browsing this forum: No registered users and 35 guests