- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail Question
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-24-2009 06:25 AM
тАО08-24-2009 06:25 AM
I am trying to make a system account generated email seem to come from a DL in outlook. For example, the email sends as bot@FQDN and I am trying to make it send as list.something@company.com. The company.com part is easy. I even set up userdb to alias bot to list.something. The problem is even in the header, if you follow the submission, you can still see bot@company.com. When I send send using sendmail -f list.something@company.com it works flawlessly. So my question is really what am I doing wrong and how can I make what I do with the -f switch in sendmail permanent on the host to ensure the mail is sent as I want it?
Any help, as always, is greatly appreciated. The hosts are mostly HP-UX and some Solaris 10.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2009 06:31 AM
тАО08-24-2009 06:31 AM
Re: Sendmail Question
This is merely a configuration and m4 compile of the sendmail.cf file. The documentation for this is on http://www.sendmail.org
Search for masquerade and such.
sendmail works in a little bit of a non-standard way with HP-UX.
http://www.hpux.ws/buildmail.hpux.text
That is a good script to show how to compile your changes.
Making this work is pretty simple.
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-24-2009 06:33 AM
тАО08-24-2009 06:33 AM
Re: Sendmail Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2009 06:41 AM
тАО08-24-2009 06:41 AM
Re: Sendmail Question
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2009 06:42 AM
тАО08-24-2009 06:42 AM
Re: Sendmail Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2009 06:43 AM
тАО08-24-2009 06:43 AM
SolutionThe problem with masquerading is that it will masquerade *everything*. If that's what you want, then have at it.
The generics table is used to rewrite the sender's address. The format is pretty simple:
# cat genericstable
root rootusr3db16@myco.com
Any email coming off that system as root will be rewritten to rootusr3db16@myco.com
(Don't ask; it's a long story on why I have to rewrite root's email...)
Run "grep generic /etc/mail/sendmail.cf"; if you see
Kgenerics hash /etc/mail/genericstable
sendmail is already configured to use the generics table. If not, you will have to generate a new sendmail config file using the m4 command
FEATURE(`genericstable')dnl
Once configured, edit the generics table as described above, then execute:
makemap hash genericstabe < genericstable
while in the /etc/mail directory.
You shouldn't have to restart sendmail. Once done, using the example above:
sendmail -v oleary@myco.com << eof
Subject: testing
eof
[[ connect string snipped ]]
250 2.0.0 Verbose mode
>>> MAIL From:
250 2.1.0
>>> RCPT To:
>>> DATA
250 2.1.5
354 Enter mail, end with "." on a line by itself
>>> .
And you should be set.
HTH;
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html