LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12:07 PM   #1
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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 12:09 PM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:36 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
Open Source Consulting | Domain Registration