Re: [EXIM] Generating warning messages for depricated domain

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Jeffrey Goldberg
CC: exim-users
Assunto: Re: [EXIM] Generating warning messages for depricated domain
On Tue, 7 Jul 1998, Jeffrey Goldberg wrote:

> We have a deprecated domain, cran.ac.uk, which despite efforts over
> the past 5 years is still used.


Chop it off. They will soon learn. :-)

> What I would like to do is deliver mail normally addressed to things
> in that domain, but to also generate a message to the sender (envelope
> form) of the message informing them that the address @*.cran.ac.uk
> is to go away.


It should be possible to do this with an "unseen" smartuser director,
and an autoreply transport, along the lines of the following (cribbed
from David Sheryn's example of the same sort of thing):

warning_t:                                                
  driver        = autoreply                                             
  file          = /usr/local/mail/warning.txt
  file_expand                           
  from          = postmaster@???
  to            = $sender_address
  user          = exim
  subject       = "Re: Your mail to ${local_part}@${domain}"


auto_warning_d:                       
  driver        = smartuser
  domains       = cran.ac.uk 
  condition     = ${if eq{$sender_address}{}{no}{yes}}
  transport     = warning_t
  no_verify                    
  unseen            


... but David was having some problems with this which I'm not sure got
fully resolved. (An alternative to skipping when $sender_address is null
would be to send to postmaster@???.)

> I would also like to log sender and reciepient addresses of such things
> (though I can get this from the mail_log as well), so that I can
> talk to the recipients to find out if they are still advertising or
> leaking these addresses.


add log = /some/file to the transport, making sure the user can write
to it. That will log to whom the messages are sent. It won't, however,
log the original recipients of the messages.

-- 
Philip Hazel                   University Computing Service,
P.Hazel@???          New Museums Site, Cambridge CB2 3QG,
ph10@??? (sic)       England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***