Re: OpenSMTP as mx backup

2018-11-26 Thread Chris Bennett
+2 on that! Sorry +1 is just not enough!

I have a backup, but that's only IF I know there's a problem.
If I have any net access, if I'm not traveling. If .

Most of my email is unimportant. But when it is, it's $$ or some
emergency.

Chris



-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTP as mx backup

2018-11-26 Thread Craig Skinner
On Sun, 25 Nov 2018 15:49:44 +0100 Gilles Chehade wrote:
> .. if you have a secondary MX that keeps your mail for longer
> than 4 days, which is already quite long, it means that you have more
> trust in the reliability of your secondary MX than your primary MX and
> this essentially means your setup is wrong.

There are many possible problems.

If your primary MX's network goes down while you are away on 3 weeks
holiday, the backup MX can spool mail until you return from holiday to
have the ISP fix the wiring, etc. which might take a few days...

Or if the primary MX has a failure on Friday evening, and you can't
order parts until Monday, which take a week to arrive

Some shit takes more than 4 days to fix.

Cheers,
-- 
Craig Skinner | http://linkd.in/yGqkv7

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTP as mx backup

2018-11-25 Thread Lars Bonnesen
Hi all of you. Thanks for the input. 90 days are just an example.

But I agree with you, My backup MX is more reliable than my primary MX. The
is a test home setup running on an xDSL - line, and the last month, this
xDSL has been running insanely unstable.

Even though it is a test mail, I do receive important mails on it from time
to time, and I am able to view these mails on the backup mx by issuing:

smtpctl show queue
smtpctl show message 

Yes, I agree... stupid. But it gets me where I wan.

But the backup MX actually does send out notifications. It sends "could
not delivers mails within 4 hours. trying for x days". I actually thought
that a backup MX would just keep it and process it silently.

How to change what is says - and change the interval it sends the
notifications?

Regards, Lars.


On Sun, Nov 25, 2018 at 3:49 PM Gilles Chehade  wrote:

> On Wed, Nov 14, 2018 at 10:41:44AM +0100, Lars Bonnesen wrote:
> > I managed to figure it out. Seems quite simple. What does the trick is:
> >
> > action "disney" relay backup mx mxbackup.donald.duck
> > > match from any for domain "donald.duck" action "disney"
> >
> >
> > When the primare mx are down, I can see mails being queued up with:
> >
> > smtpctl show queue
> >
> > and mail shows up ending with:
> >
> > |pending|417|Network error on destination MXs
> >
> >
> > For how long will they stay in the queue by default and how do I change
> > this to say... 90 days?
> >
>
> from man page smtpd.conf(5):
>
>queue ttl delay
>  Set the default expiration time for temporarily
>  undeliverable messages, given as a positive
>  decimal integer followed by a unit s, m, h, or d.
>  The default is four days (4d).
>
>
> what you want is:
>
>queue ttl 90d
>
>
> note that this is not really a very good idea ...
>
> it assumes your primary MX can be down for up to 90 days, whereas your
> secondary MX is going to be up for that long, in which case you might
> want to reconsider and swap both ;-)
>
> the value should be long enough so mail is not lost while your primary
> MX is down, but it should still be the lowest possible because senders
> will not know you didn't actually receive the mail since one of your
> servers have accepted it.
>
> clearly if you have a secondary MX that keeps your mail for longer
> than 4 days, which is already quite long, it means that you have more
> trust in the reliability of your secondary MX than your primary MX and
> this essentially means your setup is wrong.
>
> if you still want to do that, you should consider also looking at the
> bounce warn-interval option so at the very least your senders know
> that you didn't receive the mail for real yet.
>
> Cheers,
>
> --
> Gilles Chehade @poolpOrg
>
> https://www.poolp.org tip me: https://paypal.me/poolpOrg
>


Re: OpenSMTP as mx backup

2018-11-25 Thread Gilles Chehade
On Wed, Nov 14, 2018 at 10:41:44AM +0100, Lars Bonnesen wrote:
> I managed to figure it out. Seems quite simple. What does the trick is:
> 
> action "disney" relay backup mx mxbackup.donald.duck
> > match from any for domain "donald.duck" action "disney"
> 
> 
> When the primare mx are down, I can see mails being queued up with:
> 
> smtpctl show queue
> 
> and mail shows up ending with:
> 
> |pending|417|Network error on destination MXs
> 
> 
> For how long will they stay in the queue by default and how do I change
> this to say... 90 days?
> 

from man page smtpd.conf(5):

   queue ttl delay
 Set the default expiration time for temporarily
 undeliverable messages, given as a positive
 decimal integer followed by a unit s, m, h, or d.
 The default is four days (4d).


what you want is:

   queue ttl 90d


note that this is not really a very good idea ...

it assumes your primary MX can be down for up to 90 days, whereas your
secondary MX is going to be up for that long, in which case you might
want to reconsider and swap both ;-)

the value should be long enough so mail is not lost while your primary
MX is down, but it should still be the lowest possible because senders
will not know you didn't actually receive the mail since one of your
servers have accepted it.

clearly if you have a secondary MX that keeps your mail for longer
than 4 days, which is already quite long, it means that you have more
trust in the reliability of your secondary MX than your primary MX and
this essentially means your setup is wrong.

if you still want to do that, you should consider also looking at the
bounce warn-interval option so at the very least your senders know
that you didn't receive the mail for real yet.

Cheers,

-- 
Gilles Chehade @poolpOrg

https://www.poolp.org tip me: https://paypal.me/poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTP as mx backup

2018-11-14 Thread Lars Bonnesen
I managed to figure it out. Seems quite simple. What does the trick is:

action "disney" relay backup mx mxbackup.donald.duck
> match from any for domain "donald.duck" action "disney"


When the primare mx are down, I can see mails being queued up with:

smtpctl show queue

and mail shows up ending with:

|pending|417|Network error on destination MXs


For how long will they stay in the queue by default and how do I change
this to say... 90 days?

Regards, Lars.


On Tue, Nov 13, 2018 at 3:01 PM Lars Bonnesen 
wrote:

> Anyone can post a working smtpd.conf for OpenSMTP on OpenBSD 6.4?
>
> Lets say I want OpenSMTP to backup for the domain "donald.duck" with a
> primary mail server as "mail.donald.duck"
>
> Regards, Lars.
>