LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2008, 09:41 AM   #1
G00fy
Member
 
Registered: Jul 2004
Location: Herent, Belgium, Europe, Earth
Distribution: Ubuntu 7.04
Posts: 102

Rep: Reputation: 15
[PostFix] How to set up half-local delivery?


Hi,


I just set up a basic postfix server. It's working halfly... But ...

First, what I want to achieve is that postfix checks my local users, resolving them to real emails if needed (based on the aliases file), if they cannot be found locally, it should queue them for delivery and send them out via a relay host.


What I have at this point is this:
Code:
myhostname = my.host.name
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain, my.host.name, host.name
relayhost = mail.host.name
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

debug_peer_list=127.0.0.1
debug_peer_level=99

What that does is the following:
If I send a mail to myself (echo test | mutt goofy), it will send out a mail to goofy@somedomain.com (where it gets this hostname is a mystery as I cannot find any reference of it within /etc).


Thanks for any explanation!
 
  


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 simple local delivery problems vargadanis Linux - Networking 2 09-02-2007 03:21 AM
Local Mail delivery gabsik Linux - Networking 0 01-09-2007 07:43 AM
postfix - local delivery 'To: ' rewriting ilikejam Linux - Server 0 11-17-2006 12:07 PM
Postfix and local delivery shawnbishop Linux - Software 20 10-28-2006 01:11 PM
Sendmail local delivery watchamaka Linux - Networking 6 12-13-2003 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 PM.

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