Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail and outgoing name

Status
Not open for further replies.

pupu

ISP
Oct 15, 2002
174
CZ
Hello,
I need to tell sendmail to use defined name while talking to remote servers (while sending 'MAIL FROM:'). I've tried 'Djmydomain.com', but it wasn't doing the right thing. Thanks!
 
If you want ALL mail that goes out from you server to have the same domain in the From: line. Add this to your /etc/mail/sendmail.mc file:

MASQUERADE_AS('mydomain.com')

Then rebuild sendmail.cf:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

I hope I understood the question.
 
Nope. It isn't what I need... This machine is in DMZ and all I want is to send cron outputs etc from it. The problem is that there is mail server in this DMZ that only accepts mail from existing domains. I don't want to add these machines into DNS; they don't have public IPs and shouldn't be accessible from outside DMZ. So, I need that these servers will send 'MAIL FROM: <root@domain.com>' instead of 'MAIL FROM: <root@machine.domain.com>'. Masquerade changes only headers...
 
Hi,

There's a sendmail forum on TekTips - it'll be worth asking there too.
 

What do you mean &quot;Masquerade changes only headers...&quot;?? What else do you want to change??
You can fool sendmail into thinking you're on a different network than you really are...

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
I want to change 'MAIL FROM:' part of SMTP communication, not mail headers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top