message 'Relaying denied' when receving external e-mail
Hopefully someone can help. I just set up a sendmail e-mail server on a debian squeeze system. I pretty much have a stock sendmail.mc file the only things I have added were the following:
define(`SMART_HOST',`smtp.comcast.net')
define(`confAUTH_OPTIONS', `A p')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
I've also removed the Addr=127.0.0.1 from the following options so sendmail will listen on all network interfaces:
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea')dnl
At this point I am only concerned about why I can't receive e-mail. I keep getting the folloing in my mail log file when I try to send mail from my external yahoo account:
Jan 26 22:46:56 webserver sm-mta[17431]: q0R3kslH017431: ruleset=check_rcpt, arg1=<me@somedomain.com>, relay=nm26.bullet.mail.sp2.yahoo.com [98.139.91.96], reject=550 5.7.1 <me@somedomail.com>... Relaying denied. Proper authentication required.
Jan 26 22:46:56 webserver sm-mta[17431]: q0R3kslH017431: from=<thisperson@yahoo.com>, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA-v4, relay=nm26.bullet.mail.sp2.yahoo.com [98.139.91.96]
I'm sure I'm missing something here because I don't understand why an e-mail being sent to me is tyring to be relayed by my own server. I though only if a mesage is being passed on is relayed.
Just so you know my setup, I am behind a NAT router and I do have the ports forward to the mail server (port 25).
|