Skip to content

Tag: postfix

Sending mail from a NATed host with Postfix

When sending mail from a host behind NAT, you will run into trouble when the "From" says "root@host.localdomain", because receiving servers will refuse that domain. Read More »

Postfix, SASL and rimap: making sure the domain is not stripped from the user name

When you want to use your IMAP account as authentication for Postfix, you can set the SASL mechanism to "rimap". However, by default, it will not supply the realm (domain) and therefore will authenticate with an incomplete username (john instead of Read More »

Setting up a postfix fallback MX

These are some short stepts and pointers to setup a postfix fallback MX. It does not describe postfix basics, nor how to install Mailscanner (a necessisity, because spammers like sending spam to fallback MX's because they're usually not as well protected). Read More »

Postfix queue: sender and recipient address

I always seem to forget this, and the mailq command is not clear, so here it is: when you type mailq on a postfix server, the first address listed is the sender, the second the recipient. Read More »

Adding SPF support to Postfix

(Hmm, this suggests the python version might be better). Read More »

Working with a postfix mail queue

Some useful commands when working with a postfix mailqueue: "postsuper -r ALL". Requeues all messages. "postcat [file]". Views queue files in /var/spool/bla. "postqueue". Deal with queue. Read More »

Enabling authentication and SSL for Postfix on Debian

I used this document as main source. This blogpost is also useful. Read More »

Configuring fetchmail to deliver to Zimbra with custom header added

I needed to fetch mail from a POP3 account and deliver it to a Zimbra account. Because I'm doing this for multiple POP3 accounts, I want to add a header which I can use in Zimbra to filter. This is what we made: Read More »

Set proper origin domain for Zimbra server

(This turned out not to be how I fixed it. I just configured exim and /etc/mailname as I do always and that fixed it. However, exim does not run as the SMTP server listening on port 25, that is the postfix installed by Zimbra. I don't know how and if this exim configuration conflicts with zimbra.) Read More »