- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Mail configuring
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 10:03 AM
тАО08-28-2003 10:03 AM
Mail configuring
I have some linux with sendmail and postfix, and I relay all mails to one exchange server.
I want to receive the linux mails in this format:
root.server1@domain.com.ar
root.server2@domain.com.ar
In this way I can identify the origin of the mails.
Are there any parameter in de sendmail.cf or main.cf to do this ???
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 10:58 AM
тАО08-28-2003 10:58 AM
Re: Mail configuring
Change it to
djroot.server2
save sendmail.cf
service sendmail restart
It could also be done with more effort in the macro file. sendmail.mc Thats a little advanced for this simple request.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 10:59 AM
тАО08-28-2003 10:59 AM
Re: Mail configuring
The Dj parameter in sendmail.cf should do the job.
Change it to
Djroot.server2
# Note the lack of spaces between the Dj and the name.
save sendmail.cf
service sendmail restart
It could also be done with more effort in the macro file. sendmail.mc Thats a little advanced for this simple request.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:00 PM
тАО08-28-2003 01:00 PM
Re: Mail configuring
Djroot.server1
and the mail say:
from: root@root.server1
I think that is not possible insert any word between the username and the @.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:26 PM
тАО08-28-2003 03:26 PM
Re: Mail configuring
Is this for *all* mail, or just from a specific process?
if the latter (and it's a root user), you can use the '-f' flag on sendmail to force the from address to be pretty much anything you want.
Otherwise, I'm not sure of a 'nice' way to mangle the 'username' (that's the bit infront of the @) without some serious CF hacking.
You might want to look at your sendmail references for that one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 10:09 PM
тАО08-28-2003 10:09 PM
Re: Mail configuring
Then issue this command:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 11:55 PM
тАО08-28-2003 11:55 PM
Re: Mail configuring
It seems you want masquerading -> set the DM
DMdomain.com.ar
Now if you want this scenario for all mails from root, add the folowing line in the section starting with "SHdrFromSMTP=31":
SHdrFromSMTP=31
#root masquerading
Rroot<@$w.$m> $@root.$w@$m
Rroot<@$w.$m.> $@root.$w@$m
The ruleset SHdrFromSMTP=31 is from a 8.11.1 sendmail.cf found on hp-ux. I am not sure what version of sendmail is on RH 9, but the rule set is present in RH7.2's 8.11.6
Some more free advise, document, how you built you sendmail.cf, and the modifiations made afterwards. In a next release, it might all change, and it is sometimes very hard to back track the changes made.
HTH
Kasper