[Exim] Emulating Sendmail's EXPN and behavior

Pàgina inicial
Delete this message
Reply to this message
Autor: Mark T. Valites
Data:  
A: exim-users
Assumpte: [Exim] Emulating Sendmail's EXPN and behavior
I've setup a acl_smtp_expn ACL to only allow expn commands from my desktop
at work. In my existing sendmail setup, expn on accounts with vacation
messages or forwards (by way of .forwardm files) outputs the pipe command
to the vacation program or the address the mail is set to be forwarded to.

ie.:

(sendmail)

expn <addr@domain>
250-2.1.5 User's_Full_Name <"|/usr/bin/vacation <addr">

expn <addr>
250-2.1.5 User's_Full_Name <forward_username@forward_domain>

(exim4)
expn <addr@domain>
250 <addr@domain>

Is it possible to get the sendmail type of behavior out of Exim4

My forward and vacation routers look essentially like this:

userforward:
  debug_print = "R: userforward for $local_part@$domain"
  driver = redirect
  domains = +local_domains
  check_local_user
  file = $home/.forward
  no_verify
  #no_expn
  check_ancestor
  allow_filter
  directory_transport = address_directory
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  skip_syntax_errors
  syntax_errors_to = real-$local_part@$domain
  syntax_errors_text = \
    This is an automatically generated message. An error has\n\
    been found in your .forward file. Details of the error are\n\
    reported below. While this error persists, you will receive\n\
    a copy of this message for every message that is addressed\n\
    to you. If your .forward file is a filter file, or if it is\n\
    a non-filter file containing no valid forwarding addresses,\n\



vacation_router:
debug_print = "R: vacation_router for $local_part@$domain"
driver = accept
transport = vacation_transport
domains = +local_domains
check_local_user
require_files = $home/.vacation.msg:+/usr/bin/vacation
unseen


--
Mark T. Valites
Unix Systems Analyst
Computing & Information Technology
SUNY Geneseo
>--))> >--))>