Sendmail set up with Yahoo
I'm trying to get Sendmail to relay through Yahoo. I got it working with gmail after following some tutorials, but I'm hanging up on yahoo. I made certificates for the gmail one and left all the configurations I had for the gmail one but just inserted the Yahoo smtp stuff - but no go. My authinfo file looks like this:
AuthInfo:smtp.mail.yahoo.com "U:myUsername@yahoo.com" "I:myUsername@yahoo.com" "P:Password" "M:PLAIN" AuthInfo:smtp.mail.yahoo.com:465 "U:myUsername@yahoo.com" "I:myUsername@yahoo.com" "P:Password" "M:PLAIN" and the part of my sendmail.mc thats been changed is: FEATURE(`authinfo',`hash /etc/mail/authinfo.db') define(`SMART_HOST',`smtp.mail.yahoo.com')dnl define(`RELAY_MAILER_ARGS', `TCP $h 465') define(`ESMTP_MAILER_ARGS', `TCP $h 465') define(`confCACERT_PATH',`/usr/share/ssl/certs') define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt') define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem') define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem') define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') define(`confAUTH_OPTIONS', `A')dnl I left it how it was with gmail and redid the makemap hash on the authinfo and ran the m4 sendmail.mc>sendmail.cf and restarted sendmail and I get nothing. I can switch it back to gmail's info and it sends, but not Yahoo. My mail log has this in it after my last email attempt after redoing the authinfo and sendmail: Aug 23 15:59:54 localhost sendmail[2857]: starting daemon (8.14.4): SMTP+queueing@01:00:00 Aug 23 15:59:54 localhost sendmail[2857]: STARTTLS=server: file /usr/share/ssl/certs/sendmail.pem unsafe: Group readable file Aug 23 15:59:54 localhost sm-msp-queue[2867]: starting daemon (8.14.4): queueing@01:00:00 Aug 23 16:00:00 localhost sendmail[2873]: q7NN00qx002873: from=userName, size=216, class=0, nrcpts=1, msgid=<201208232300.q7NN00qx002873@localhost.localdomain>, relay=root@localhost Aug 23 16:00:01 localhost sendmail[2874]: q7NN004O002874: from=<userName@localhost.localdomain>, size=487, class=0, nrcpts=1, msgid=<201208232300.q7NN00qx002873@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Aug 23 16:00:01 localhost sendmail[2873]: q7NN00qx002873: to=example@aol.com, ctladdr=userName (500/500), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30216, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q7NN004O002874 Message accepted for delivery) Aug 23 16:00:21 localhost sendmail[2876]: q7NN004O002874: to=<example@aol.com>, ctladdr=<userName@localhost.localdomain> (500/500), delay=00:00:20, xdelay=00:00:20, mailer=relay, pri=120487, relay=smtp.mail.yahoo.com [98.138.84.55], dsn=4.0.0, stat=Deferred: Connection reset by smtp.mail.yahoo.com I'm on CentOS 2.6.32-220.17.1.el6.x86_64 if that helps. Anyone had any success using Sendmail and Yahoo to relay emails? Everything look ok in the authinfo and sendmail.mc? Not sure if any of those lines in the .mc need to be removed from the gmail setup I had or are they ok the way they are? Thanks for any help on this, I've been stuck on this for a few days... |
Since you have mention 465 as default port for sendmail you need to enable those port in sendmail.mc file to be able to send mail
One way is to comment those lines so that you can send mail on port 25. Code:
define(`RELAY_MAILER_ARGS', `TCP $h 465') Change as following Code:
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl Code:
#netstat -ntlp | grep sendmail |
I got 465 from a website that said Yahoo smtp uses 465, should that be something different?
Quote:
Quote:
Quote:
Quote:
And thanks for the help by the way! |
Yes please post your sendmail.mc and maillog
I have not worked with yahoo mail server as I use smtp.gmail.com For reference you can use this page Sendmail error messages Configuring Sendmail |
I cut out everything that was commented out of the sendmail.mc to reduce the size. So here is what I got.
SENDMAIL.MC: Code:
divert(-1)dnl Mail log looks like this: Code:
Aug 24 05:25:18 localhost sendmail[3147]: q7OCPI8r003147: from=userName, size=216, class=0, nrcpts=1, msgid=<201208241225.q7OCPI8r003147@localhost.localdomain>, relay=root@localhost Code:
dnl define(`RELAY_MAILER_ARGS', `TCP $h 465') Sorry for all the questions guys >.< Trying to get my head around this. |
check your firewall if it is listening for port 465 and other smtp ports
Code:
#netstat -ntlp | grep sendmail Code:
#telnet smtp:mail.yahoo.com 465 |
I ran this netstat command and it didn't return anything. Not sure if that is desired or it was supposed to say something
Quote:
Quote:
Code:
[root@localhost Desktop]# telnet smtp.mail.yahoo.com 465 Quote:
Code:
[root@localhost Desktop]# telnet smtp.mail.yahoo.com 567 Quote:
Code:
[root@localhost Desktop]# telnet smtp.mail.yahoo.com 25 |
My ISP is Comcast also. I've read that sometimes ISP's have an issue with port 25. Based on those telnet results, is 465 the way to go?
Spent another day on this and still nowhere >.< I'm at your mercy brilliant Linux people... I've almost reached the end of the rope on this, I've tried everything I can think of in my limited knowledge. I'm open to any suggestions whatsoever *begs*. |
try this command
Code:
#netstat -ntl | grep sendmail You can remove these lines from your config file Code:
define(`RELAY_MAILER_ARGS', `TCP $h 465') Code:
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040, If 465 doesnot work out try with 567 as well and let me know the results along with the maillog |
I found this line, it matches all except the 567 isn't there. The line is just "A=TCP $h". No port. Should I add a port directly to the .cf?
Quote:
|
yes add the port no. as I had showed you
try with 465 and 567 both make sure your firewall and selinux is not blocking sendmail. |
I tried that and I still can't get it to work....
|
Well I've got about 40+ hours of troubleshooting in this and still can't seem to get a result. I'm also considering switching to Postfix if someone has a working configuration with Yahoo, I would be forever indebted to you if you could post it. And thank you guys so much for taking the time to throw ideas out there! Just cant seem to get anything to work.
|
Hey milksnake12,
I am working on this problem also. One of the things I've come across repeatedly is that yahoo doesn't allow this usage on non-premium accounts. I think their other servers are smtp.bizmail.yahoo.com and smtp.prem.yahoo.com. Alas, I am, however, still getting the error message on bizmail. So that's not the only problem... |
All times are GMT -5. The time now is 04:08 AM. |