[Pkg-exim4-users] Bounces, errors and how to configure it
Leopold Palomo Avellaneda
leo at alaxarxa.net
Mon Sep 22 19:10:44 UTC 2008
A Dilluns 22 Setembre 2008, Andreas Metzler va escriure:
> Leopold Palomo Avellaneda <leo at alaxarxa.net> wrote:
> [...]
>
> > I have a problem with my exim configuration and I really don't know
> > how to solve it. I have a little network at home with a old box
> > acting as a mail server. This box is running a etch.
> >
> > My mail server, use another box (from a friend) as a smtp, because
> > my ISP doesn't have a good smtp server and in many places doesn't
> > accept mails from dynamic IPs.
> >
> > The mail server recollect the mail from me and my wife using
> > fetchmail and delivers it to exim who pass it to spanassassin. My
> > configuration works in general, but some times I got some troubles
> > and I don't know how to solve it.
> >
> > For example, if spamassassin is too busy, then, fetchmail couldn't
> > delivery the mail, so, generate a bounce that is sent to the smtp of
> > my friend, and I don't want it.
>
> I assume you are running spamassassin at SMTP time (using the spam
> =... ACLs)? This looks like the wrong thing to do in your use case
> since you *never* want to reject mail at SMTP time because this would
> only upset fetchmail.
>
> Running spamassassin when delivering or as a transport filter should
> work better, in that case fetchmail does not need to wait (timeout)
> for spamassassin to run.
I'm running spamassassin in the transport part (I guess ..) I have a:
/etc/exim4/conf.d/transport/30_exim4-config_spamcheck file with:
spamcheck:
debug_print = "T: spamassassin_pipe for $local_part@$domain"
driver = pipe
command = /usr/sbin/exim4 -oMr spam-scanned -bS -d+transport
use_bsmtp
transport_filter = /usr/bin/spamc #-u ${local_part}
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = Debian-exim
return_fail_output
message_prefix =
message_suffix =
temp_errors = *
and a:
/etc/exim4/conf.d/router/850_exim4-config_spamcheck_router
with:
spamcheck_router:
no_verify
check_local_user
# When to scan a message :
# - it isn't already flagged as spam
# - it isn't already scanned
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}
{spam-scanned}}} {1}{0}}"
driver = accept
transport = spamcheck
> > I would like that the bounce or the errors goes to my
> > postmaster at localhost.
>
> The bounce is always sent to the (envelope sender).
> [...]
Not sure, or I don't know what's happen. The sender is fetchmail.
> > Also, I'm very comfortable with the debian way of do the things.
> > But, with exim, I doesn't understand how they work.
> >
> > The idea is to modify the update-exim4.conf.conf and after run
> > update-exim4.conf, no? And how can I incorporate options not in the
> > dc_XXX vars?
>
> The idea is to
> a) edit /etc/exim4/exim4.conf.localmacros
> for stuff whith predifined hooks, e.g. to override trusted_users =
> uucp by defing MAIN_TRUSTED_USERS.
I don't have this file /etc/exim4/exim4.conf.localmacros ... ?
> b) directly edit the dpkg-conffile /etc/exim4/exim4.conf.template (or
> the split up version) otherwise.
Ok,
> Of course there is a point where it is better and simpler to ignore
> the Debian configuration and simply manually build a
> /etc/exim4/exim4.conf.
Thanks,
I will try to monitorize some days to try to find something about it.
Regards,
Leo
--
--
Linux User 152692
PGP: 0xF944807E
Catalonia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20080922/319b1740/attachment.pgp
More information about the Pkg-exim4-users
mailing list