Forwarding Problem: Solved!
I found out two things: (1) compiling a perl script every time an e-mail message arrives is quite inefficient, but connecting to the database is okay (2) I had a mail infinite loop #1 was fixed by rewriting my .qmail-default script in C instead of perl. It does almost exactly the same thing, except: #2 was fixed by calling /var/qmail/bin/forward instead of /usr/bin/sendmail to forward the message. forward adds a Delivered-To: header that does mail loop checking, while sendmail doesn't. It turns out that I had [EMAIL PROTECTED] who had set his e-mail address forward to baduser, so it kept looping back to himself. I did have a check in my perl script not to forward to anything @mydomain.com, but I didn't check for e-mail addresses that had no @ sign! So, the perl script wasn't really responsible for jacking my system load average up to 10; the baduser was. Upon disabling the baduser's forward, the load average with the perl script went down to 1.5. The load average with the C script is 0.10. Yay! ^___^
RE: forwarding problem
I have a problem with some messages that are not forwarded and I don't know why. I have the following configuration: echo egargiulo ~alias/.qmail-root echo egargiulo ~alias/.qmail-postmaster echo egargiulo ~alias/.qmail-mailer-daemon cat ~egargiulo/.qmail [EMAIL PROTECTED] ./Mailbox Some error messages (for an address not in rcpthost) are delivered to postmaster and stored in ~admin/Mailbox but not forwarded to [EMAIL PROTECTED] How can I fix it? messages to admin, postmaster, root and mailer-daemon are forwarded and stored ok. What Do The Logs Say? (tm) -Dave I had attached part of the logfile to this message. I think, the bogus mail sender is #@[] ,so the MTA that receives the forwarded bogus mail reject it. How can I fix it? PS: I have edited the original post to show the real usernames and forward addresses. ~edu -- Jul 11 16:48:35 masq qmail: 994880915.696263 new msg 24267 Jul 11 16:48:35 masq qmail: 994880915.703443 info msg 24267: bytes 4442 from qp 12824 uid 538 Jul 11 16:48:35 masq qmail: 994880915.713270 starting delivery 3813: msg 24267 to remote [EMAIL PROTECTED] Jul 11 16:48:35 masq qmail: 994880915.720037 status: local 0/10 remote 1/20 Jul 11 16:48:36 masq qmail: 994880916.503213 delivery 3813: failure: Connected_to_200.16.224.213_but_sender_was_rejected./Remote_host_said:_501_bogus_mail_from/ Jul 11 16:48:36 masq qmail: 994880916.510713 status: local 0/10 remote 0/20 Jul 11 16:48:36 masq qmail: 994880916.532645 bounce msg 24267 qp 12826 Jul 11 16:48:36 masq qmail: 994880916.539301 end msg 24267 Jul 11 16:48:36 masq qmail: 994880916.547476 new msg 24263 Jul 11 16:48:36 masq qmail: 994880916.554718 info msg 24263: bytes 4951 from #@[] qp 12826 uid 538 Jul 11 16:48:36 masq qmail: 994880916.566128 starting delivery 3814: msg 24263 to local [EMAIL PROTECTED] Jul 11 16:48:36 masq qmail: 994880916.573062 status: local 1/10 remote 0/20 Jul 11 16:48:36 masq qmail: 994880916.624017 new msg 24262 Jul 11 16:48:36 masq qmail: 994880916.631180 info msg 24262: bytes 5062 from #@[] qp 12829 uid 532 Jul 11 16:48:36 masq qmail: 994880916.641999 starting delivery 3815: msg 24262 to local [EMAIL PROTECTED] Jul 11 16:48:36 masq qmail: 994880916.648953 status: local 2/10 remote 0/20 Jul 11 16:48:36 masq qmail: 994880916.657513 delivery 3814: success: did_0+1+0/qp_12829/ Jul 11 16:48:36 masq qmail: 994880916.664898 status: local 1/10 remote 0/20 Jul 11 16:48:36 masq qmail: 994880916.672353 end msg 24263 Jul 11 16:48:36 masq qmail: 994880916.724537 new msg 24263 Jul 11 16:48:36 masq qmail: 994880916.731369 info msg 24263: bytes 5174 from #@[] qp 12832 uid 502 Jul 11 16:48:36 masq qmail: 994880916.742864 starting delivery 3816: msg 24263 to remote [EMAIL PROTECTED] Jul 11 16:48:36 masq qmail: 994880916.749255 status: local 1/10 remote 1/20 Jul 11 16:48:36 masq qmail: 994880916.756521 delivery 3815: success: did_1+1+0/qp_12832/ Jul 11 16:48:36 masq qmail: 994880916.764078 status: local 0/10 remote 1/20 Jul 11 16:48:36 masq qmail: 994880916.771080 end msg 24262 Jul 11 16:48:39 masq qmail: 994880919.950715 delivery 3816: failure: Connected_to_200.0.218.99_but_sender_was_rejected./Remote_host_said:_501_#@[]..._Sender_domain_must_exist/ Jul 11 16:48:39 masq qmail: 994880919.958017 status: local 0/10 remote 0/20 Jul 11 16:48:39 masq qmail: 994880919.958941 triple bounce: discarding bounce/24263 Jul 11 16:48:39 masq qmail: 994880919.959667 end msg 24263 ---
Re: forwarding problem
On Thu, Jul 12, 2001 at 08:56:30AM -0300, GARGIULO Eduardo INGDESI wrote: I think, the bogus mail sender is #@[] ,so the MTA that receives the This is a double bounce that never should get delivered outside your host. -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
forwarding problem
Hi all. I have a problem with some messages that are not forwarded and I don't know why. I have the following configuration: echo admin ~alias/.qmail-root echo admin ~alias/.qmail-postmaster echo admin ~alias/.qmail-mailer-daemon cat ~admin/.qmail [EMAIL PROTECTED] ./Mailbox Some error messages (for an address not in rcpthost) are delivered to postmaster and stored in ~admin/Mailbox but not forwarded to [EMAIL PROTECTED] How can I fix it? messages to admin, postmaster, root and mailer-daemon are forwarded and stored ok. thanks ~edu
Re: forwarding problem
GARGIULO Eduardo INGDESI [EMAIL PROTECTED] wrote: I have a problem with some messages that are not forwarded and I don't know why. I have the following configuration: echo admin ~alias/.qmail-root echo admin ~alias/.qmail-postmaster echo admin ~alias/.qmail-mailer-daemon cat ~admin/.qmail [EMAIL PROTECTED] ./Mailbox Some error messages (for an address not in rcpthost) are delivered to postmaster and stored in ~admin/Mailbox but not forwarded to [EMAIL PROTECTED] How can I fix it? messages to admin, postmaster, root and mailer-daemon are forwarded and stored ok. What Do The Logs Say? (tm) -Dave
Re: forwarding problem
On Fri, Nov 10, 2000 at 09:53:31PM -0500, disconnected wrote: i set up a domain as a catchall that should forward mail to a remote [EMAIL PROTECTED]: in .qmail i put [EMAIL PROTECTED] in assign is the usual +domain-:etc, etc for some reason, it shows up in the log, delivers successfully, but it never shows up in my remote box, or anywhere else for that matter where is this mystery mail going? You sent this message to the wrong list. Try [EMAIL PROTECTED] Chris
Forwarding problem
Hi I have the following line in my /var/qmail/alias/.qmail-root file: [EMAIL PROTECTED] I restarted qmail with svc -t but mail for root is still going to /var/spool/mail/root, what am I missing?? Cheers Ralf
Re: Forwarding problem
"Ralf Guenthner" [EMAIL PROTECTED] wrote: I have the following line in my /var/qmail/alias/.qmail-root file: [EMAIL PROTECTED] I restarted qmail with svc -t but mail for root is still going to /var/spool/mail/root, what am I missing?? Just a guess, but I'd say you've got a copy of sendmail somewhere that hasn't been replaced by qmail's sendmail, and whatever MUA you're using to send mail to root is using it. What happens if you send mail to root on that system from another system? -Dave