1834187 Members
2946 Online
110064 Solutions
New Discussion

Re: sendmail Return-Path

 
Pax_1
Occasional Contributor

sendmail Return-Path

Hi,

I need configure sendmail to send messages with a differently domain and a real mail user.

To change the domain I modify DM line (# Masquerade as (DM):) and I get to send with the prefer domain but I still have a problem... change user mail.

This user is a local user in Unix machine and I need this user be an account valid user in mail server. I don't know How I setup sendmail to appear a valid user of the mail server in the Return-Path of mailcap.

I use alias but I don't get anything

Thanks in advance
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sendmail Return-Path

Shalom,

Options.

Make the hostname fully qualified.

hostname.your.net

Then user@hostname.your.net will be valid.

Problem is most external email systems will not tolerate that.

Dj directive in sendmail.cf

Now its user@your.net as a return user. This should meet the requirements of your question.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pax_1
Occasional Contributor

Re: sendmail Return-Path

I am using userdb for sendmail and I get a valid sender but in mailcap show like Return-Path local_user@mydomain.com

I need to can modify this "local_user" for an other user
Philip Gunter
Respected Contributor

Re: sendmail Return-Path

Hi Pax,

I'd recommend that you use the genericstable feature to do this.
If you also use masquerade_envelope this will rewrite the heads and not just the header address. This of course relies on you using m4 to generate your configuration.

http://www.sendmail.org/m4/features.html#genericstable

Cheers,
Philip.
Pax_1
Occasional Contributor

Re: sendmail Return-Path

Thanks!