Re: How to stop postfix sending emails

2009-11-11 Thread Wietse Venema
Lists:
 Hi All,
 
 We are doing an upgrade on the machine that holds the postboxes 
 (mailenable) during the upgrade the server will need to be rebooted 
 which renders the boxes unreachable.
 This causes a 550 error to be sent back to our spam catching server 
 (running MailScanner spamassassin and postfix).

That is a terrible configuration error. A host outage should
never result in 5xx mail rejects.

Wietse


Re: How to stop postfix sending emails

2009-11-11 Thread Eero Volotinen


Maybe you can tell spam filter postfix to HOLD all mails to your domains 
and then just remove hold and postsuper -H ALL ?


like this:

http://wiki.zimbra.com/index.php?title=Irfan-Notes#Holding_the_Postfix_Queue_at_time_of_server_migration.2Fmaintenance
and

man 5 access and look for HOLD ?

--
Eero


Re: How to stop postfix sending emails

2009-11-11 Thread Lists

Wietse Venema wrote:

Lists:
  

Hi All,

We are doing an upgrade on the machine that holds the postboxes 
(mailenable) during the upgrade the server will need to be rebooted 
which renders the boxes unreachable.
This causes a 550 error to be sent back to our spam catching server 
(running MailScanner spamassassin and postfix).



That is a terrible configuration error. A host outage should
never result in 5xx mail rejects.

Wietse
  
I don't love it either but it is how MailEnable works when it can't 
access the box, it responds with -
550 5.7.1 Unable to relay for originallocalsen...@domain.co.nz (in reply 
to RCPT TO command))


Hopefully the MailEnable server won't be in the state where it can't 
access the boxes for long - i'm just trying to ensure no mail ends up lost.


Re: How to stop postfix sending emails

2009-11-11 Thread Wietse Venema
Lists:
 Wietse Venema wrote:
  Lists:

  Hi All,
 
  We are doing an upgrade on the machine that holds the postboxes 
  (mailenable) during the upgrade the server will need to be rebooted 
  which renders the boxes unreachable.
  This causes a 550 error to be sent back to our spam catching server 
  (running MailScanner spamassassin and postfix).
  
 
  That is a terrible configuration error. A host outage should
  never result in 5xx mail rejects.
 
  Wietse

 I don't love it either but it is how MailEnable works when it can't 
 access the box, it responds with -
 550 5.7.1 Unable to relay for originallocalsen...@domain.co.nz (in reply 
 to RCPT TO command))

Don't we all love brain-dead systems.

I recently added a translation mapping for SMTP server inputs.
That was meant to map inputs from brain-dead SMTP clients into
something that satisfies basic SMTP syntax rules.

Perhaps I should also add a translation mapping for inputs from
SMTP servers, so that in the future, one could replace the above
reply by a 4xx class reply.

Wietse


Re: How to stop postfix sending emails

2009-11-11 Thread Lists

Eero Volotinen wrote:

Lists wrote:

Hi All,

We are doing an upgrade on the machine that holds the postboxes 
(mailenable) during the upgrade the server will need to be rebooted 
which renders the boxes unreachable.
This causes a 550 error to be sent back to our spam catching server 
(running MailScanner spamassassin and postfix).


In order to prevent the loss of emails I was going to change the 
postfix config in the following way


soft_bounce http://www.postfix.org/postconf.5.html#soft_bounce = yes


Is this going to achieve what I need (i.e. that 550 responses are not 
treated as permenant and will try again).


Alternatively I was considering stopping the spam server from sending 
out emails during the upgrade time but I am unsure how to alter the 
behaviour of postfix so that it receives in email but will then hold 
it in queue and not attempt to send on.


Maybe you can tell spam filter postfix to HOLD all mails to your 
domains and then just remove hold and postsuper -H ALL ?


--
Eero
Yeah I just had a look at the postsuper -h ALL - it only seems to move 
emails present in the queues at that moment to the hold bin but doesn't 
put subsequent ones in their.
Is there a way for it to keep moving them until the postsuper -r ALL is 
given?


Re: How to stop postfix sending emails

2009-11-11 Thread Noel Jones

On 11/11/2009 7:14 PM, Wietse Venema wrote:

Lists:

Wietse Venema wrote:

Lists:


Hi All,

We are doing an upgrade on the machine that holds the postboxes
(mailenable) during the upgrade the server will need to be rebooted
which renders the boxes unreachable.
This causes a 550 error to be sent back to our spam catching server
(running MailScanner spamassassin and postfix).



That is a terrible configuration error. A host outage should
never result in 5xx mail rejects.

Wietse


I don't love it either but it is how MailEnable works when it can't
access the box, it responds with -
550 5.7.1 Unable to relay for originallocalsen...@domain.co.nz (in reply
to RCPT TO command))


Don't we all love brain-dead systems.

I recently added a translation mapping for SMTP server inputs.
That was meant to map inputs from brain-dead SMTP clients into
something that satisfies basic SMTP syntax rules.

Perhaps I should also add a translation mapping for inputs from
SMTP servers, so that in the future, one could replace the above
reply by a 4xx class reply.

Wietse


I dealt with a similar brain-dead relay destination by 
creating a never_reject transport that had soft bounce turned on.


This worked pretty well, but only because I had a valid user 
list from the offender.


Wouldn't that be about the same as what you describe above?


  -- Noel Jones


Re: How to stop postfix sending emails

2009-11-11 Thread Michael Orlitzky

Lists wrote:

Hi All,

We are doing an upgrade on the machine that holds the postboxes 
(mailenable) during the upgrade the server will need to be rebooted 
which renders the boxes unreachable.
This causes a 550 error to be sent back to our spam catching server 
(running MailScanner spamassassin and postfix).


In order to prevent the loss of emails I was going to change the postfix 
config in the following way


soft_bounce http://www.postfix.org/postconf.5.html#soft_bounce = yes


Is this going to achieve what I need (i.e. that 550 responses are not 
treated as permenant and will try again).


Alternatively I was considering stopping the spam server from sending 
out emails during the upgrade time but I am unsure how to alter the 
behaviour of postfix so that it receives in email but will then hold it 
in queue and not attempt to send on.


Thoughts appreciated.

Thanks
Kate


How mad would everyone be if you just unplugged the Ethernet cable on 
the machine returning 550?