LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-17-2006, 01:07 PM   #1
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
postfix - local delivery 'To: ' rewriting


Hi all.

I've just started using Postfix, and it's functioning well (everything comes in and goes out fine, and I'm not an open relay).

I have a issue which, although not a showstopper, is causing me some irritation:
Any mail sent from the mail host itself to local users on the machine has its 'To: ' rewritten with the full domain name, instead of just with the local hostname.

The setup is as follows:
My receiving (external) domain is 'davidstark.name'
The external name of the mail host is 'mail.davidstark.name'
The real hostname of the mail host is 'atlas.homenet'

So, if I send an email (just using 'mail') from root to, say, jim with:
Code:
echo "Hello jim" | mail -s "Message for jim" jim
on the mailhost (atlas), 'jim' gets an email 'To: jim@davidstark.name', instead of 'To: jim@atlas.homenet'

I'd like local mail to remain in its normal user@hostname for for the purpose of filtering cron and administration emails out from external email.

Does anyone know how to stop local -> local mail from having it's To: field rewritten?

Cheers.

Dave

Last edited by ilikejam; 11-17-2006 at 01:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix and local delivery shawnbishop Linux - Software 20 10-28-2006 02:11 PM
Exim4 only local delivery ALInux Linux - Networking 0 05-02-2006 10:06 AM
qmail local delivery lag branden_burger Linux - Networking 0 01-20-2006 05:14 AM
Sendmail local delivery watchamaka Linux - Networking 6 12-13-2003 02:32 PM
sendmail local delivery problems jhildebrand Linux - Networking 0 04-24-2003 04:56 PM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration