Leopold Palomo Avellaneda
2008-Sep-22 14:24 UTC
[Pkg-exim4-users] Bounces, errors and how to configure it
Hi, 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 would like that the bounce or the errors goes to my postmaster at localhost. Also, some times I have a problem with the smtp and it rejects to resend a mail and I got an error. However, I don''t know how to send this error to the user that try to send a message. Neither to postmaster. I have modified the /etc/exim4/conf.d/main/02_exim4-config_options file, adding: errors_reply_to = postmaster at localhost MAIN_FREEZE_TELL = postmaster at localhost .endif freeze_tell = MAIN_FREEZE_TELL However, this options doesn''t do the job, and I really have no idea how to solve it. 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? Regards, Thank''s in advance. 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/59fac70b/attachment.pgp
Andreas Metzler
2008-Sep-22 18:23 UTC
[Pkg-exim4-users] Bounces, errors and how to configure it
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 would like that the bounce or the errors goes to my > postmaster at localhost.The bounce is always sent to the (envelope sender). [...]> 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. b) directly edit the dpkg-conffile /etc/exim4/exim4.conf.template (or the split up version) otherwise. 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. 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''
Leopold Palomo Avellaneda
2008-Sep-22 19:10 UTC
[Pkg-exim4-users] Bounces, errors and how to configure it
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