1826417 Members
3758 Online
109692 Solutions
New Discussion

dtmail

 
SOLVED
Go to solution
Ulrich Deiters
Frequent Advisor

dtmail

Is it possible to configure dtmail (or sendmail) not to use the
local user name and local machine name for the "From:" and
"Reply to:" fields, but some other e-mail address?
3 REPLIES 3
Rainer_1
Honored Contributor
Solution

Re: dtmail

changing the local user can be done for example:

Local user (from /etc/passwd) : udeiters
Domain: domain.de

In /etc/sendmail.cf add these lines:
O UserDatabaseSpec=/etc/mail/userdb.db
DMdomain.de

Create the file /etc/mail/userdb with:
udeiters:mailname ulrich.deiters
ulrich.deiters:maildrop udeiters

Convert /etc/mail/userdb with:

/usr/sbin/makemap btree /etc/mail/userdb.db < /etc/mail/userdb

Now restart sendmail:

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

After these changes emails for the unix user udeiters will be generated as ulich.deiters@domain.de
Ulrich Deiters
Frequent Advisor

Re: dtmail

Thanks, that does it!
I wonder how you found this; the information on the HP-UX
information CD-ROM (Dynatext) is rather meagre.
nnf97
Regular Advisor

Re: dtmail

Hi,

The sendmail.cf file is full of comments and one just needs to have some patience to read through it :)

Regards,
Nabeel
Live Free or Die (New Hampshire)