- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing a sender's address in sendmail
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
тАО04-18-2006 04:25 AM
тАО04-18-2006 04:25 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 04:30 AM
тАО04-18-2006 04:30 AM
Re: Changing a sender's address in sendmail
From: "Name Lastname"
my text starts at this line. The line above this is intentionally left blank.
blah
blah
...
and more blah
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 04:34 AM
тАО04-18-2006 04:34 AM
Re: Changing a sender's address in sendmail
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685447
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 04:45 AM
тАО04-18-2006 04:45 AM
Re: Changing a sender's address in sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 07:06 AM
тАО04-18-2006 07:06 AM
Re: Changing a sender's address in sendmail
add the following as the first line of rule 93 so e-mail from root appears to come from the UnixTeam mailbox
Rroot < @ $* > $* UnixTeam < @ $1 > $2 Special case for root
Watch out for tabs. Sendmail's rewrite rules are broken into fields by tab characters. Make sure the white space before UnixTeam is a tab, and put 2 tabs before Special.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 08:31 AM
тАО04-18-2006 08:31 AM
Re: Changing a sender's address in sendmail
Can I put something like unixteam@domain.com in place of UnixTeam ? I've also been trying to configure the generics table and I can't get it to work. I've made the following changes to sendmail.cf:
- uncommented all lines for genericstable
- DMmydomain.com
- DSmailrelayhost.mydomain.com
- C{G}mydomain.com
in the genericstable file, I have the following:
myunixid myexchangeid@mydomain.com
myunixid@mydomain myexchangeid@mydomain.com
myunixid@servername.mydomain.com myexchangeid@mydomain.com
I then did the makemap dbm command to create the genericstable.db file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 08:37 AM
тАО04-18-2006 08:37 AM
Re: Changing a sender's address in sendmail
At our site UnixTeam is a real Exchange user.
If someone was to reply to the email from that server - it would go to a "shared" mail box on the Exchange server that 9 of us admins have access to.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2006 10:59 AM
тАО04-18-2006 10:59 AM
SolutionExternal well configured sendmail instances will check that the domain part of the from address is valid. You can also run checks against the relay.
Use the generics table to change the from address of a given Unix account to a _valid_ e-mail address where the domain part of the from address is valid - it doesn't matter if that host (MX) is different than where you are right now.
Uncomment the following lines in sendmail.cf.
Build the genericstable - filenames matter.
Restart sendmail.
Test.
#Kgenerics dbm /etc/mail/genericstable
#R< $+ > $+ < $* > @ $: < $(generics $1 $: $) > $2 < $3 >
#R< > $+ < @ $+ > $: < $(generics $1 $: $) > $1 < @ $2 >
If the testing doesn't work, give us some more debug:
1) Use the following debug commands to locate the problem:
1a) check if sendmail "sees" a genericstable entry:
echo "/map generics u...@mycomputer.myuniveristy.com"
1b) check processing of the addresses
sendmail -d60.1 -d21.12 -bt <
/try esmtp u...@domain.com
END
Replace u...@domain.com with address of "unmasqueraded" users.
-d60.1 - trace maps lookups
-d21.12 - trace sendmail.cf R lines processing
/tryflags hs - make /try check header sender
(*h*eader/*e*nvelope *s*ender/*r*ecipient)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 01:51 AM
тАО04-20-2006 01:51 AM
Re: Changing a sender's address in sendmail
I assigned this to another SA, and she got it to work by using the userdb table to basically map a UNIX account to a valid domain email address. What's the difference then between the genericstable and userdb ?
BTW: we are not running sendmail as a process (ie., it does not listen for incoming email).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2006 08:26 AM
тАО04-21-2006 08:26 AM
Re: Changing a sender's address in sendmail
BTW: we are not running sendmail as a process (ie., it does not listen for incoming email).
The user database alllows sender and recipient addresses to be re-written under the control of an external database.
Names are looked up in the user database after aliasing but before forwarding.
The user database is a bit more complicated than the generics database, which is used to re-write just the sender's address.
Here's the usage information for generics out of the sendmail release notes:
genericstable- to do a more general rewriting of outgoing addresses. Defaults to ``hash -o /etc/genericstable''. Keys are user names; values are outgoing mail addresses. Yes, this does overlap with the user database, and figuring out just when to use which one may be tricky.
I'd guess that the thinking is if you're already using userdb to rewrite recipient addresses, why not use it to rewrite sender addresses. If you're not using anything, or if you just want to rewrite sender addresses, use the genericstable.