[Exim] How to do fancy aliases?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marc Merlin
Fecha:  
A: exim-users
Asunto: [Exim] How to do fancy aliases?
I used to have alias entries like this with sendmail:
engr-sw:                 "|/bin/sed -e 's/Subject: .Engr-All. /Subject: /' -e '/mailing list/,$ d' | /bin/sed '$ d' | /bin/sed '$ d' |/bin/sed '$ d' |/var/local/mailman/mail/wrapper post engr-sw"


Exim gets very unhappy with this (admittedly exim 2.12)
---
A message that you sent could not be delivered to all of its recipients. The
following address(es) failed:

  engr-hw@???:
    generated |/bin/sed -e 's/Subject: .Engr-All. /Subject: /' -e '/mailing
list/,$ d' | /bin/sed '$ d' | /bin/sed '$ d' |/bin/sed '$ d'
|/var/local/mailman/mail/wrapper post engr-hw:
    Child process of mailman_list_pipe transport (running command "/bin/sed -e
's/Subject:
    .Engr-All. /Subject:
    /' -e '/mailing list/,$ d' | /bin/sed '$ d' | /bin/sed '$ d' |/bin/sed '$ d'
|/var/local/mailman/mail/wrapper post engr-hw") was terminated by
signa\034\371\377\177\225L\005\b\320\037\v\b
  engr-sw@???:
    generated |/bin/sed -e 's/Subject: .Engr-All. /Subject: /' -e '/mailing
list/,$ d' | /bin/sed '$ d' | /bin/sed '$ d' |/bin/sed '$ d'
|/var/local/mailman/mail/wrapper post engr-sw:
    Child process of mailman_list_pipe transport (running command "/bin/sed -e
's/Subject:
    .Engr-All. /Subject:
    /' -e '/mailing list/,$ d' | /bin/sed '$ d' | /bin/sed '$ d' |/bin/sed '$ d'
|/var/local/mailman/mail/wrapper post engr-sw") was terminated by
signa\034\371\377\177\225L\005\b\300\034\v\b


The following text was generated during the delivery attempts:

------ |/bin/sed -e 's/Subject: .Engr-All. /Subject: /' -e '/mailing list/,$ d'
| /bin/sed '$ d' | /bin/sed '$ d' |/bin/sed '$ d'

|/var/local/mailman/mail/wrapper post engr-hw ------

/bin/sed: can't read |: No such file or directory
^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@??4^@^@^@??^@^@^@^@^@^@4^@
^@^E^@(^@^V^@^U^@^F^@^@^@4^@^@^@4?4??^@^@^@?^@^@^@^E^@^@^@^D^@^@^@^C^@^@^@?^@^@
????^S^@^@^@^S^@^@^@^D^@^@^@^A^@^@^@^A^@^@^@^@^@^@^@^@?^@?l?^@^@l?^@^@^E^@^@^@^@
^P^@^@^A^@^@^@l?^@^@l;l;p^B^@^@?^D^@^@^F^@^@^@^@^P^@^@^B^@^@^@T?^@^@T=T=?^@^@^@?
^@^@^@^F^@^@^@^D^@^@^@/lib/ld-linux.so.2^@^@C^@^@^@I^@^@^@6^@^@^@^@^@^@^@^@^@^@
#^@^@^@'^@^@^@^]^@^@^@^@^@^@^@/^@^@^@)^@^@^@^^^@^@^@F^@^@^@^@^@^@^@8^@^@^@D^@^@
^@^@^@^@^Q^@^@^@^@^@^@^@^@^@^@^@^\^@^@^@^@^@^@^@5^@^@^@^@^@^@^@^F^@^@^@^@^@^@^@
^@^@^@
(...)
*** Too much output - remainder discarded ***

------ This is a copy of the message, including all the headers. ------

What did I do wrong?

Marc
--
Microsoft is to software what McDonalds is to gourmet cooking

Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc_f@??? for PGP key and other contact information