OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
temporarily putting ON HOLD

From: Stefan Palme (kleinerhora-obscura.de)
Date: Tue Apr 06 2010 - 02:44:53 CDT


Hi,

I have a postfix configuration with virtual aliases like this:

  userexample.com userimap.server, userrelay.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-