Tuesday, September 09, 2008

AT&T Yahoo Email Address Verification and Sendmail

In my last post, I described how to send mail from an Unix server with AT&T Yahoo! DSL line because SMTP ports are blocked and you have to send emails through Yahoo's secure SMTP server. Now AT&T added another restriction. I received the following email from AT&T:

Dear AT&T Internet Services Member,

We have received questions regarding the following error message which is received by customers when they send e-mail using a non-verified e-mail address:

“Unable to send the message. Please verify the e-mail address in your account properties. The server responded: 553 From: address not verified.”


Ah, it requires that the sender's address to be verified. The hostname of my FreeBSD server is not in public DNS server so it can't really receive emails so there is no way to verify the email address. Fortunately, Sendmail allows you to masquerade sender's address easily. You just need to add the following three lines into your sendmail.mc (Don't forget to apply the patch to the result sendmail.cf if you want to use sendmail with stunnel on localhost, as described in my last post)

FEATURE(masquerade_envelope)
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN(your_domain_name)

Replace your_domain_name with the email domain that your Unix server uses. Then you need to modify /etc/mail/genericstable file. The syntax is pretty simple:

user1 verified_address

The verified_address doesn't have to be from yahoo.com. Any email address that you own and verified with Yahoo will do. The genericstable file basically says that for those users at the generic domains (defined by GENERICS_DOMAIN) the sender address should be replaced with the verified_address. Make a hash out of the new genericstable file,

makemap hash genericstable.db < genericstable

Now restart sendmail and you are all set.

3 comments:

woodson2 said...

Hello, I've tried this process and I'm getting the following in /var/log/maillog. Any help would be greatly appreciated...

Oct 23 14:17:47 blue sendmail[5341]: m9NIHlEn005340: to=mstarling@epathlearning.com, ctladdr=root@blue.maizenblue.com (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30569, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Oct 23 14:17:47 blue sendmail[5341]: m9NIHlEn005340: alias root@blue.maizenblue.com => mstarling@epathlearning.com
Oct 23 14:17:47 blue sendmail[5341]: m9NIHlEn005340: m9NIHlEn005341: DSN: Service unavailable
Oct 23 14:17:47 blue sendmail[5341]: m9NIHlEn005341: to=mstarling@epathlearning.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31593, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Oct 23 14:17:47 blue sendmail[5341]: m9NIHlEn005340: done; delay=00:00:00, ntries=1

Qiao said...

You doesn't seem to have stunnel running on the localhost correctly.

Editor said...

Thank you for sharing such a wonderful Information !!
Here is a list of Top LINUX INTERVIEW QUESTIONS

Veritas Cluster Interview Questions

Redhat Cluster Suite Commands

SAMBA Server Interview Questions

Linux FTP vsftpd Interview Questions

SSH Interview Questions

Apache Interview Questions

Nagios Interview questions

IPTABLES Interview Questions

Ldap Server Interview Questions

LVM Interview questions

Sendmail Server Interview Questions

YUM Interview Questions

NFS Interview Questions

Tcpdump Command Examples & Usages

Example of YUM Commands

Read More at :- Linux Troubleshooting