[Remops] Postfix set up help

Steve Crook steve at mixmin.net
Mon Apr 21 14:44:01 BST 2014


On Sun, Apr 20, 2014 at 08:07:19PM -0500, Config wrote:
> I am completely new to using postfix and can't figure out what to do to fix
> my problem by reading the manual. I was trying to test my new remailer setup
> by sending the following subjects to it:
> 
> To root at inwtx.net
Looking at inwtx.net I see:
$ dig inwtx.net mx +short
0 mail.inwtx.net.

Mail for that domain is delivered to a server called mail.inwtx.net
with the highest possible priority (0).  I'd suggest changing that to 10
so you have scope for over-riding it with a higher priority if you ever
need to.  It's a minor issue though.

$ dig mail.inwtx.net +short
inwtx.net.
95.85.35.251

Your hostname resolves to an address, good.

$ dig -x 95.85.35.251 +short
inwtx.net.

Reverse DNS is in place.  All good so far!

> To remailer at mixmaster.inwtx.net
$ dig mixmaster.inwtx.net mx +short
inwtx.net.
0 mail.inwtx.net.

Mail for your subdomain also has a correct MX record.

> Subject: remailer-key
> Subject: remailer-conf
> 
> Return error messages:
> 
> rcpt to: key at inwtx.net
> 550 5.1.1 key at inwtx.net: Recipient address rejected: User unknown in local
> recipient table
This error means you don't have a recipient called 'key'.

> rcpt to: remailer-key at mixmaster.inwtx.net
> 554 5.7.1 remailer-key at mixmaster.inwtx.net: Relay access denied
> rcpt to: remailer-conf at mixmaster.inwtx.net
> 554 5.7.1 remailer-conf at mixmaster.inwtx.net: Relay access denied
You need to add mixmaster.inwtc.net to your mydestination in main.cf.

> rcpt to: root at inwtx.net
> 250 2.1.5 Ok
This indicates that your server is accepting mail for the inwtx.net
domain and that a recipient called 'root' exists.

> My remailer.conf has everything going to mbox
> MAILBOX /var/lib/mixmaster/mbox
You might want to change this at some point so mail is delivered into
the remailer's homedir in MAILDIR format but I suggest leaving that
until you've got postfix working to your satisfaction.
 
> Secondly, it seems like I have to place any 'Recipient address' that comes
> in somewhere to keep them from rejecting (key in key at inwtx.net). Something
> about these files? local_recipient_maps, luser_relay, relay_domains
By default postfix will try to deliver mail to a local account that
matches the email address.  Eg. key at foo will be delivered to a system
account called 'key'.  Your root at inwtx.net address works because there
is an account of that name.  There are ways to change this behaviour,
such as local_recipient_maps, but initially you probably want a system
account called mix, mixmaster or remailer and a corresponding email
address.

> Can someone point me to the right files/parameters for this? The postfix
> manual has only served to confuse me.
It's a beast.  :)
Postfix is incredibly powerful and can satisfy very complex email
scenarios.  This can make it a bit daunting at first, until you realise
which elements of it you actually need.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.mixmin.net/pipermail/remops/attachments/20140421/305c2169/attachment.sig>


More information about the Remops mailing list