Jim Holland
2011-Sep-13 16:40 UTC
[Pkg-exim4-users] Is it possible to create a file with customised bounce messages?
Hi I am using Exim 4.72 on a Debian Squeeze server, after many years of sendmail. I much prefer the logic of Exim, and it seems to be able to do almost everything that I want it to. One facility that sendmail has that I have not been able to replicate is the use of the access file to send customised bounce messages to senders based on a domain, address or IP address, eg: To:example.com 550 The domain example.com does not accept mail To:anna.swelan at nokia.com 550 Anna Swelan does not work for Nokia. If you have received a message with instructions to e-mail her it is a HOAX - please do not pass it on. From:admin at cia.gov 550 Mail from admin at cia.gov blocked due to Sober virus Connect:10.0.0 550 Sorry - your IP address is on our spam blocklist Is there any simple way to do this with Exim? Regards Jim Holland System Administrator Mango - Zimbabwe''s non-profit e-mail service
Marc Haber
2011-Sep-13 16:41 UTC
[Pkg-exim4-users] Is it possible to create a file with customised bounce messages?
On Tue, Sep 13, 2011 at 06:40:22PM +0200, Jim Holland wrote:> Is there any simple way to do this with Exim?Use a text file or a database lookup in an MAIL or RCPT ACL. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Andreas Metzler
2011-Sep-13 17:39 UTC
[Pkg-exim4-users] Is it possible to create a file with customised bounce messages?
Marc Haber <mh+pkg-exim4-users at zugschlus.de> wrote:> On Tue, Sep 13, 2011 at 06:40:22PM +0200, Jim Holland wrote: >> Is there any simple way to do this with Exim?> Use a text file or a database lookup in an MAIL or RCPT ACL.... and let the expansion yield :fail: ... ------------------------------------ m26s25:~# grep disabled: /etc/exim4/vdom/downhill.at.eu.org/aliases disabled: :fail: Found no way to unregister -> MAIL FROM:<deleted> <- 250 OK -> RCPT TO:<disabled at downhill.at.eu.org> <** 550 Found no way to unregister -> QUIT ------------------------------------ cu andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.'' `I sew his ears on from time to time, sure''
Jim Holland
2011-Sep-14 07:21 UTC
[Pkg-exim4-users] Is it possible to create a file with customised bounce messages?
Hi Thanks for the tips. Now off to RTFM about database lookups . . . Regards Jim Holland On Tue, 13 Sep 2011, Andreas Metzler wrote:> Date: Tue, 13 Sep 2011 19:39:11 +0200 > From: Andreas Metzler <ametzler at downhill.at.eu.org> > To: pkg-exim4-users at lists.alioth.debian.org > Subject: Re: [Pkg-exim4-users] Is it possible to create a file with > customised bounce messages? > > Marc Haber <mh+pkg-exim4-users at zugschlus.de> wrote: > > On Tue, Sep 13, 2011 at 06:40:22PM +0200, Jim Holland wrote: > >> Is there any simple way to do this with Exim? > > > Use a text file or a database lookup in an MAIL or RCPT ACL. > > ... and let the expansion yield :fail: ... > > ------------------------------------ > m26s25:~# grep disabled: /etc/exim4/vdom/downhill.at.eu.org/aliases > disabled: :fail: Found no way to unregister > -> MAIL FROM:<deleted> > <- 250 OK > -> RCPT TO:<disabled at downhill.at.eu.org> > <** 550 Found no way to unregister > -> QUIT > ------------------------------------ > > cu andreas > > -- > `What a good friend you are to him, Dr. Maturin. His other friends are > so grateful to you.'' > `I sew his ears on from time to time, sure'' > > > _______________________________________________ > Pkg-exim4-users mailing list > Pkg-exim4-users at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exim4-users >