Afficher un message
Vieux 01/11/2006, 21h42   #2
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /etc/aliases - alias to cause error

Hannu_H <dr@ils.net> writes:

> Does anybody know if I can trick the alias file to produce an error to
> the sending SMTP server?
> This works well with virtusertable, but I am not sure about the
> /etc/aliases format.
> Something like this:
> user: error: nouser 550 No such user here
> Or, is there another handy way to cause an error to the sending server
> for a username that actually exists but should not get mailed.
> Thanks,
> Hannu


Ugly but fast and simple way:
1) create "error entries" in virtusertable

virtusertable:
nouser@localhost.localdomain error:nouser 550 No such user here

2) use aliases to the "error entries"

aliases:
userx: nouser

--
[pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
  Réponse avec citation
 
Page generated in 0,04884 seconds with 9 queries