Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Change ctladdr in sendmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Mon Jan 03, 2005 9:05 pm    Post subject: Change ctladdr in sendmail Reply with quote

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
View user's profile Send private message
jcsbarreto
n00b
n00b


Joined: 18 Oct 2012
Posts: 1

PostPosted: Thu Oct 18, 2012 3:05 am    Post subject: Force modify sendmail ctladdr Reply with quote

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
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 478
Location: Bantayan Island

PostPosted: Sun Oct 28, 2012 8:02 am    Post subject: Reply with quote

The default sendmail.mc file will have an entry like this:
Code:

DOMAIN(generic)

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum