Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-17-2006, 12:07 PM   #1
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 ''
The external name of the mail host is ''
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:
echo "Hello jim" | mail -s "Message for jim" jim
on the mailhost (atlas), 'jim' gets an email 'To:', 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?



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


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 01:11 PM
Exim4 only local delivery ALInux Linux - Networking 0 05-02-2006 09:06 AM
qmail local delivery lag branden_burger Linux - Networking 0 01-20-2006 04:14 AM
Sendmail local delivery watchamaka Linux - Networking 6 12-13-2003 01:32 PM
sendmail local delivery problems jhildebrand Linux - Networking 0 04-24-2003 03:56 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:26 PM.

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