View previous topic :: View next topic |
Author |
Message |
cuban Guru
Joined: 23 Aug 2003 Posts: 448 Location: Houston, TX
|
Posted: Mon Jan 03, 2005 9:05 pm Post subject: Change ctladdr in sendmail |
|
|
Hello all,
I'm running an internal webapp that needs to send mail to internal users. My problem is our mailserver rejects the domainname because it's invalid.
It appears it reads the ctladdr. I unfortunetly cannot change anything on our mailserver so I need to change the ctladdr on ourbound emails.
It is currently root@netmon.domainname.com. I need it to show root@domainname.com. Any suggestions?
I have this in my /etc/mail/sendmail.mc
Code: | MASQUERADE_AS(`domainname.com')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl |
TIA, as I'm desperate to get this working. _________________ Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today! |
|
Back to top |
|
|
jcsbarreto n00b
Joined: 18 Oct 2012 Posts: 1
|
Posted: Thu Oct 18, 2012 3:05 am Post subject: Force modify sendmail ctladdr |
|
|
good night
I am needing to find the same solution to configure sendmail on. What is the solution configuration used?
Thank you. |
|
Back to top |
|
|
zeek Guru
Joined: 16 Nov 2002 Posts: 480 Location: Bantayan Island
|
Posted: Sun Oct 28, 2012 8:02 am Post subject: |
|
|
The default sendmail.mc file will have an entry like this:
which doesn't masquerade root's email. Remove this entry.
You can see the entries that line adds by looking at this file:
Code: |
/usr/share/sendmail-cf/domain/generic.m4
|
Copy the entries except for EXPOSED_USER and paste them into sendmail.mc. Don't forget to regenerate sendmail.cf |
|
Back to top |
|
|
|