Jason Staudenmayer: > Hi all, I'm new to the list and to Postfix in general. I'm in the > process of upgrading and old server I have that's running Qmail. > I figured now would be a good time to learn something new as I > sure don't remember what I patched Qmail with 10 years ago. > > Here's the breakdown, this is a fax gateway server with only one > local user. I'm looking to replicate what I have Qmail doing. Right > now it will accept all email for the address format > fax-#############@aafax.mydomain.com<mailto:fax-#############@aafax.mydomain.com>. > From there I pass the email to a script and it does the rest. Right > now I'm stuck at how to get Postfix to accept the email in that > format. I'd rather not change this format as I have my users trained > very well.
This should get you started: /etc/postfix/main.cf: relay_domains = aafax.mydomain.com relay_recipient_maps = hash:/etc/postfix/relay_recipients transport_maps = hash:/etc/postfix/transport /etc/postfix/relay_recipients: @aafax.mydomain.com does-not-matter /etc/postfix/transport: aafax.mydomain.com fax: /etc/postfix/master.cf: fax unix - n n - - pipe flags=see-manpage user=nobody argv=/path/to/command $sender $recipient Apply "postmap transport", "postmap relay_recipients", and "postfix reload" as appopriate. References: http://www.postfix.org/postconf.5.html#relay_domains http://www.postfix.org/postconf.5.html#relay_recipient_maps http://www.postfix.org/postconf.5.html#transport_maps http://www.postfix.org/master.5.html http://www.postfix.org/pipe.8.html (see "directory" and "flags"). Happy postfixing. Wietse