Results 1 to 3 of 3
Hello everyone,
I have a problem with sendmail (sendmail-8.13.8-8.el5) on RedHat 5.4 x64: actually, I just can not configure it so that it rewrites the email address of the sender.
...
- 01-10-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
sendmail masquerade
Hello everyone,
I have a problem with sendmail (sendmail-8.13.8-8.el5) on RedHat 5.4 x64: actually, I just can not configure it so that it rewrites the email address of the sender.
The mail reaches the recipient always with this return address: root
But my file is fed genericstable:
root myemailaddress
Here is my sendmail.mc file, that I have compiled sendmail.cf with m4
[COLOR="Blue"]
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`LM')dnl
OSTYPE(`linux')dnl
define(`SMART_HOST', `mysmtpserver')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
LOGIN PLAIN')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`laposte.fr')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(`genericstable')dnl
FEATURE(masquerade_entire_domain)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
- 01-13-2011 #2Just Joined!
- Join Date
- Sep 2010
- Location
- Dhaka, Bangladesh
- Posts
- 29
usually, I modify the following lines:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl LOCAL_DOMAIN(`mail.example.org')dnl
dnl MASQUERADE_AS(`example.org')dnl
you could try it.
- 01-13-2011 #3Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
I have solved my problem in adding this line :
GENERICS_DOMAIN(srvunx052.domain.local localhost)dnl
where srvunx052.domain.local was the server's hostname
Thanks!


Reply With Quote