[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?

2023-12-05 Thread Viktor Dukhovni via Postfix-users
On Tue, Dec 05, 2023 at 04:45:49PM +, Chris Green via Postfix-users wrote:
> On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via Postfix-users 
> wrote:
> > * Chris Green via Postfix-users :
> > 
> > > mydestination = 
> > 
> > no mail is delivered locally. Thus "/etc/aliases" doesn't get to do
> > anything
> > 
> Ah, that explains it.
> 
> So what's the minimal way of doing this?

https://www.postfix.org/MULTI_INSTANCE_README.html#split
https://www.postfix.org/MULTI_INSTANCE_README.html#quick

-- 
Viktor.
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?

2023-12-05 Thread Chris Green via Postfix-users
On Tue, Dec 05, 2023 at 11:53:24AM -0500, Wietse Venema via Postfix-users wrote:
> Ralf Hildebrandt via Postfix-users:
> > * Chris Green via Postfix-users :
> > > On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via 
> > > Postfix-users wrote:
> > > > * Chris Green via Postfix-users :
> > > > 
> > > > > mydestination = 
> > > > 
> > > > no mail is delivered locally. Thus "/etc/aliases" doesn't get to do
> > > > anything
> > > > 
> > > Ah, that explains it.
> > > 
> > > So what's the minimal way of doing this?
> > > 
> > > I don't want to deliver any mail locally but I do want something like
> > > /etc/aliases to redirect mail sent to root (i.e. errors) to me off site.
> > 
> > I'd say:
> > leave mydestination at the default (delete the line from main.cf)
> > then it should work.
> 
> If you want to alias off-host delivery, use virtual_alias_maps.
> 
> user@example  other-u...@example.com
> 
> Note this file has different syntax than /etc/aliases (no colon).
> 
Thank you Wietse, that would seem to be a sensible way to handle it.

-- 
Chris Green
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?

2023-12-05 Thread Wietse Venema via Postfix-users
Ralf Hildebrandt via Postfix-users:
> * Chris Green via Postfix-users :
> > On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via 
> > Postfix-users wrote:
> > > * Chris Green via Postfix-users :
> > > 
> > > > mydestination = 
> > > 
> > > no mail is delivered locally. Thus "/etc/aliases" doesn't get to do
> > > anything
> > > 
> > Ah, that explains it.
> > 
> > So what's the minimal way of doing this?
> > 
> > I don't want to deliver any mail locally but I do want something like
> > /etc/aliases to redirect mail sent to root (i.e. errors) to me off site.
> 
> I'd say:
> leave mydestination at the default (delete the line from main.cf)
> then it should work.

If you want to alias off-host delivery, use virtual_alias_maps.

user@exampleother-u...@example.com

Note this file has different syntax than /etc/aliases (no colon).

Wietse
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?

2023-12-05 Thread Ralf Hildebrandt via Postfix-users
* Chris Green via Postfix-users :
> On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via Postfix-users 
> wrote:
> > * Chris Green via Postfix-users :
> > 
> > > mydestination = 
> > 
> > no mail is delivered locally. Thus "/etc/aliases" doesn't get to do
> > anything
> > 
> Ah, that explains it.
> 
> So what's the minimal way of doing this?
> 
> I don't want to deliver any mail locally but I do want something like
> /etc/aliases to redirect mail sent to root (i.e. errors) to me off site.

I'd say:
leave mydestination at the default (delete the line from main.cf)
then it should work.

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration
  Invalidenstraße 120/121 | D-10115 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | https://www.charite.de

___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?

2023-12-05 Thread Chris Green via Postfix-users
On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via Postfix-users 
wrote:
> * Chris Green via Postfix-users :
> 
> > mydestination = 
> 
> no mail is delivered locally. Thus "/etc/aliases" doesn't get to do
> anything
> 
Ah, that explains it.

So what's the minimal way of doing this?

I don't want to deliver any mail locally but I do want something like
/etc/aliases to redirect mail sent to root (i.e. errors) to me off site.


-- 
Chris Green
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?

2023-12-05 Thread Ralf Hildebrandt via Postfix-users
* Chris Green via Postfix-users :

> mydestination = 

no mail is delivered locally. Thus "/etc/aliases" doesn't get to do
anything

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration
  Invalidenstraße 120/121 | D-10115 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | https://www.charite.de

___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org