Friday, March 13, 2009

Masquerade sender domain (rewrite) on sendmail

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 ""... 

DNS Servers on the world know "", But don't know ""


- modified "" file in /etc/mail PATH

FEATURE(genericstable, 'hash -o /etc/mail/genericstable')dnl

- use m4 to make new (backup file before)
$ m4 /etc/mail/ > /etc/mail/

- created "genericstable" file in /etc/mail PATH
Example in genericstable file:
that mean, every senders ( were masqueraded

- 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 "", when sender were domain  on mail client.

when check header email:

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
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 (8.13.1/8.13.1/Submit) id n2D5Wa6G016663
for; Fri, 13 Mar 2009 12:32:36 +0700

No comments: