I've worked like DBA 2.0 a long time.
So, I have been System Administrator in the same time. I think this a good way for me, Becuase I like it and happy ;)
I'd like to write idea to configure "masquerade sender domain" on sendmail MTA.
Masquerade sender domain (rewrite) on sendmail???
why i had to do like that ... configure sendmail (Because some MTA servers, that check look up domain),
My sender was "oracle@db01.domain.com"...
DNS Servers on the world know "domain.com", But don't know "db01.domain.com"
Start...
- modified "sendmail.mc" file in /etc/mail PATH
FEATURE(masquerade_envelope)dnlFEATURE(genericstable, 'hash -o /etc/mail/genericstable')dnlFEATURE(generics_entire_domain)dnlGENERICS_DOMAIN('domain.com')dnl
- use m4 to make new sendmail.cf (backup sendmail.cf file before)
$ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
- created "genericstable" file in /etc/mail PATH
Example in genericstable file:
@db01.domain.com %1@domain.com
that mean, every senders (%@dba01.domain.com) were masqueraded %@domain.com
- makemap genericstable file...
$ makemap -r hash /etc/mail/genericstable.db < /etc/mail/genericstable
- restarted sendmail... (hope no error)
$ /etc/init.d/sendmail restart
- Tested and checked..., recipients should see senders be "%@domain.com", when sender were db01.domain.com domain on mail client.
when check header email:
Return-Path:
Delivered-To: recipient@domain.com
Received: (qmail 20395 invoked from network); 13 Mar 2009 12:32:37 +0700
Received: from ... (HELO mxlocal)
(envelope-sender )
by mailrelay ) with SMTP
for ; 13 Mar 2009 12:32:37 +0700
.
.
.
Received: from db01.domain.com
by MTA_server (8.13.1/8.13.1) with ESMTP id n2D5Wbal017581
for ; Fri, 13 Mar 2009 12:32:37 +0700
Received: (from oracle@localhost)
by db01.domain.com (8.13.1/8.13.1/Submit) id n2D5Wa6G016663
for recipient@domain.com; Fri, 13 Mar 2009 12:32:36 +0700
From: oracle@domain.com
No comments:
Post a Comment