postfix

Postfix, placing a temporary hold on recipients

Didn't know you could do this.. both the ability to specify individuals rather than whole domains, and the retry: logic.

In the transport map

< user >@< destination.com >               retry:4.0.0 Temporarily suspended

"The email is not valid!" or "The alias is not valid!" in postfixadmin

Before I forget... because it freaked the shit out of me and made me think I broke the postfixadmin database.

When you create a domain in Postfixadmin, that's all fine and dandy. But when you create Mailboxes or Alias in this domain, postfixadmin performs a nameserver lookup only at THIS point in time to check the domain is valid. The helpful response is:

"The EMAIL is not valid!" (for mailbox), or "The ALIAS is not valid!".

In fact, what it means is that the domain is not valid, so this is quite misleading. So don't panic!

I thought I broke things, but all that had happened was that for this particular subdomain, while I had created an MX record for it in the zone, I hadn't reloaded DNS yet, and so a nameserver lookup was failing.

You could wait for DNS propagation (still don't understand why it wasn't almost instant, mail server was also the primary NS), or a quick getaround is to change

$CONF['emailcheck_resolve_domain']='YES';

to

$CONF['emailcheck_resolve_domain']='NO';

In the config.inc.php of postfixadmin, and it'll skip the nameserver lookup.

Phew.

Vacation out-of-office responder

Making vacation autoresponder in Debian

Make the .forward file in user's home directory:

\<a href="mailto:user@email.com">user@email.com</a>
"|/usr/bin/vacation user"

Make the .vacation.msg in user's home directory:

From: <a href="mailto:user@email.com">user@email.com</a> (Joe Bloggs)
Subject: I am on Annual Leave
Delivered-By-The-Graces-Of: The Vacation program
Precedence: bulk
E-mail message goes here

cd out of the user's home directory to /home and run:

Pages

Subscribe to RSS - postfix