postfix-users April 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: temporarily putting ON HOLD

temporarily putting ON HOLD

From: Stefan Palme <kleiner_at_nospam>
Date: Tue Apr 06 2010 - 07:44:53 GMT
To: postfix-users@postfix.org

Hi,

I have a postfix configuration with virtual aliases like this:

  user@example.com user@imap.server, user@relay.other.server

There are transport maps like this:

  imap.server lmtp:unix:/var/imap/socket/lmtp
  relay.other.server smtp:[ip.address.of.other.server]

With this I store incoming mails in the local IMAP server
and additionally send them to another SMTP server (which is
an obsolete domino server, mails have to be stored there for
internal reasons there).

Currently the "other server" will be down (for a long time - at
least more than the default "maximal_queue_lifetime"). Because
of this, I want all mails that would normally go to relay.other.server
to be put ON HOLD.

But I have no idea how to do this. AFAIK there is no way to define
a transport rule for this, like

  relay.other.server HOLD relay down

Adding a check_recipient_access to smtpd_recipient_restrictions also
does not work (because the original recipient's address is
@example.com).

Any ideas?

Thanks and regards!
-stefan-