LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [PostFix] How to set up half-local delivery? (https://www.linuxquestions.org/questions/linux-software-2/%5Bpostfix%5D-how-to-set-up-half-local-delivery-616870/)

G00fy 01-28-2008 09:41 AM

[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!


All times are GMT -5. The time now is 01:09 PM.