Prev: sendmail sendmail[12024]: [ID 801593 mail.crit] k560CUvG012024: SYSERR(root): collect: read timeout on connection from ???????, ???????
Next: Sendmail and access file
From: Shidony on 9 Oct 2006 21:45 Hi ppls, Has anybody had experience with the Vacation extension of Sendmail? I have the simplest form working on our mail server that sends autoreplies after reading .forward file in a user's $HOME directory. Our users don't have ftp or shell access to the mail server, so typically I set up .forward, .vacation.db, and .vacation.msg files on demand. To follow the whole process, an email is accepted for relay after checking the ACCESS file, then the user alias is expanded from ALIASES file, which directs the mail to the user's $HOME directory. It then reads the .forward file, if present, and sends out an autoreply detailed in the .vacation.msg file. No issues so far. The problems begin when an internal user, with an account on the same mail server, emails the vacationing user. For example, a test message from me to the user generates the following log entries and a dead.letter in the user's $HOME directory. Oct 10 11:00:48 mail sendmail[24476]: k9A10mAY024476: from=<chirag.gandhi(a)my.masq.domain>, size=1638, class=0, nrcpts=1, msgid=<008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain>, proto=SMTP, daemon=MTA, relay=dit03.my.domain [my.ip.add.ress] Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: "Chirag... Unbalanced '"' Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: from=pcullen, size=380, class=0, nrcpts=1, msgid=<200610100100.k9A10n8S024483(a)mail.my.domain>, relay=pcullen(a)localhost Oct 10 11:00:49 mail sendmail[24486]: k9A10nSG024486: <Chirag(a)mail.my.domain>... User unknown Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: to="Chirag, ctladdr=pcullen (602/550), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30380, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Oct 10 11:00:49 mail sendmail[24486]: k9A10nSG024486: from=<pcullen(a)mail.my.domain>, size=380, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=mail.my.domain [127.0.0.1] Oct 10 11:00:49 mail sendmail[24481]: k9A10mAY024476: to="|/usr/bin/vacation -a paul.cullen -r -t0 pcullen", ctladdr=pcullen (602/550), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=61844, dsn=2.0.0, stat=Sent Oct 10 11:00:49 mail spamd[10516]: spamd: connection from mail.my.domain [127.0.0.1] at port 33791 Oct 10 11:00:49 mail spamd[10516]: spamd: setuid to pcullen succeeded Oct 10 11:00:49 mail spamd[10516]: spamd: processing message <008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain> for pcullen:602 Oct 10 11:00:49 mail spamd[10516]: spamd: clean message (-4.2/5.0) for pcullen:602 in 0.5 seconds, 1966 bytes. Oct 10 11:00:49 mail spamd[10516]: spamd: result: . -4 - ALL_TRUSTED,AWL,BAYES_00 scantime=0.5,size=1966,user=pcullen,uid=602,required_score=5.0,rhost=mail.my.domain,raddr=127.0.0.1,rport=33791,mid=<008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain>,bayes=0,autolearn=ham Oct 10 11:00:49 mail spamd[4073]: prefork: child states: II Oct 10 11:00:49 mail sendmail[24481]: k9A10mAY024476: to=\\pcullen, delay=00:00:01, xdelay=00:00:00, mailer=local, pri=61844, dsn=2.0.0, stat=Sent Where as, I am able to send an email to the vacationing user from an address external to our network and receive the autoreply without problems. The .forward file looks like so: \pcullen,"|/usr/bin/vacation -a paul.cullen -r -t0 pcullen" Is there a misconfiguration in my sendmail.mc? I'm using Sendmail 8.12.11 and Vacation 1.1. It may be possible that our server is sending malformed "Reply-To:" or "From:" headers that the Vacation program is unable to understand. Any ideas would be appreciated. Thanks in advance! Chirag Gandhi
From: Hokan on 9 Oct 2006 22:56 On 9 Oct 2006 18:45:49 -0700, Shidony <cgandhi1978(a)gmail.com> wrote: > Hi ppls, > > Has anybody had experience with the Vacation extension of Sendmail? I > have the simplest form working on our mail server that sends > autoreplies after reading .forward file in a user's $HOME directory. > Our users don't have ftp or shell access to the mail server, so > typically I set up .forward, .vacation.db, and .vacation.msg files on > demand. > > To follow the whole process, an email is accepted for relay after > checking the ACCESS file, then the user alias is expanded from ALIASES > file, which directs the mail to the user's $HOME directory. It then > reads the .forward file, if present, and sends out an autoreply > detailed in the .vacation.msg file. No issues so far. > > The problems begin when an internal user, with an account on the same > mail server, emails the vacationing user. For example, a test message > from me to the user generates the following log entries and a > dead.letter in the user's $HOME directory. > > Oct 10 11:00:48 mail sendmail[24476]: k9A10mAY024476: > from=<chirag.gandhi(a)my.masq.domain>, size=1638, class=0, nrcpts=1, > msgid=<008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain>, proto=SMTP, > daemon=MTA, relay=dit03.my.domain [my.ip.add.ress] > Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: "Chirag... > Unbalanced '"' > Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: from=pcullen, > size=380, class=0, nrcpts=1, > msgid=<200610100100.k9A10n8S024483(a)mail.my.domain>, > relay=pcullen(a)localhost > Oct 10 11:00:49 mail sendmail[24486]: k9A10nSG024486: ><Chirag(a)mail.my.domain>... User unknown > Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: to="Chirag, > ctladdr=pcullen (602/550), delay=00:00:00, xdelay=00:00:00, > mailer=relay, pri=30380, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, > stat=User unknown > Oct 10 11:00:49 mail sendmail[24486]: k9A10nSG024486: > from=<pcullen(a)mail.my.domain>, size=380, class=0, nrcpts=0, > proto=ESMTP, daemon=MTA, relay=mail.my.domain [127.0.0.1] > Oct 10 11:00:49 mail sendmail[24481]: k9A10mAY024476: > to="|/usr/bin/vacation -a paul.cullen -r -t0 pcullen", ctladdr=pcullen > (602/550), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=61844, > dsn=2.0.0, stat=Sent > Oct 10 11:00:49 mail spamd[10516]: spamd: connection from > mail.my.domain [127.0.0.1] at port 33791 > Oct 10 11:00:49 mail spamd[10516]: spamd: setuid to pcullen succeeded > Oct 10 11:00:49 mail spamd[10516]: spamd: processing message ><008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain> for pcullen:602 > Oct 10 11:00:49 mail spamd[10516]: spamd: clean message (-4.2/5.0) for > pcullen:602 in 0.5 seconds, 1966 bytes. > Oct 10 11:00:49 mail spamd[10516]: spamd: result: . -4 - > ALL_TRUSTED,AWL,BAYES_00 > scantime=0.5,size=1966,user=pcullen,uid=602,required_score=5.0,rhost=mail.my.domain,raddr=127.0.0.1,rport=33791,mid=<008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain>,bayes=0,autolearn=ham > Oct 10 11:00:49 mail spamd[4073]: prefork: child states: II > Oct 10 11:00:49 mail sendmail[24481]: k9A10mAY024476: to=\\pcullen, > delay=00:00:01, xdelay=00:00:00, mailer=local, pri=61844, dsn=2.0.0, > stat=Sent > > Where as, I am able to send an email to the vacationing user from an > address external to our network and receive the autoreply without > problems. > > The .forward file looks like so: > \pcullen,"|/usr/bin/vacation -a paul.cullen -r -t0 pcullen" > > Is there a misconfiguration in my sendmail.mc? I'm using Sendmail > 8.12.11 and Vacation 1.1. It may be possible that our server is > sending malformed "Reply-To:" or "From:" headers that the Vacation > program is unable to understand. Well, you don't mention your OS or how and why you installed the Vacation package, but their is a good chace that /usr/bin/vacation is the Sendmail version. The one from the Vacation package may be in /usr/local/bin. Perhaps running the wrong program is producing these wrong results. -- Hokan MEnet, a wholly owned subsidiary of Enet System Administrator Department of Mechanical Engineering hokan(a)me.umn.edu Institute of Technology 612.626.9800 University of Minnesota
From: Shidony on 10 Oct 2006 03:29 Hokan wrote: > > Well, you don't mention your OS or how and why you installed the > Vacation package, but their is a good chace that /usr/bin/vacation > is the Sendmail version. The one from the Vacation package may be > in /usr/local/bin. Perhaps running the wrong program is producing > these wrong results. Sorry, I should have provided more information. My version of linux is: Linux version 2.6.10-1.771_FC2smp (bhcompile(a)porky.build.redhat.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 SMP Mon Mar 28 01:10:51 EST 2005 Having read through the notes of Vacation 1.1 I can safely say that a vanilla install of the utility installed the program into /usr/bin. I have no problems with the utility itself as problem are only evident when a user on the same server emails the recipient. The program work fine in all other scenarios. All help is welcomed :) Shidony
From: Kees Theunissen on 10 Oct 2006 11:37 Shidony wrote: > The problems begin when an internal user, with an account on the same > mail server, emails the vacationing user. For example, a test message > from me to the user generates the following log entries and a > dead.letter in the user's $HOME directory. > Do you get these errors on all messages from all local users? Or did you only test from the <chirag.gandhi(a)my.masq.domain>? > Oct 10 11:00:48 mail sendmail[24476]: k9A10mAY024476: > from=<chirag.gandhi(a)my.masq.domain>, size=1638, class=0, nrcpts=1, > msgid=<008101c6ec07$86133610$a2cd04cb(a)MTGLAU.my.domain>, proto=SMTP, > daemon=MTA, relay=dit03.my.domain [my.ip.add.ress] > Oct 10 11:00:49 mail sendmail[24483]: k9A10n8S024483: "Chirag... > Unbalanced '"' First solve this problem: Unbalanced '"' Is the 'real name' part quoted correctly in the 'From:' header you put in your messages? -- Kees Theunissen
From: Per Hedeland on 10 Oct 2006 15:20
In article <1160444749.237398.316320(a)h48g2000cwc.googlegroups.com> "Shidony" <cgandhi1978(a)gmail.com> writes: > >The problems begin when an internal user, with an account on the same >mail server, emails the vacationing user. For example, a test message >from me to the user generates the following log entries and a >dead.letter in the user's $HOME directory. [snip] >The .forward file looks like so: >\pcullen,"|/usr/bin/vacation -a paul.cullen -r -t0 pcullen" Those arguments are not compatible with version of 'vacation' included in the sendmail distribution (i.e. the "original" one): -r interval Set the reply interval to interval days. -t time Ignored, available only for compatibility with Sun's vacation program. This isn't likely to be your problem, just a hint that you're not using the sendmail version ("1.1" is another hint, the sendmail version doesn't have a version number of its own). >Is there a misconfiguration in my sendmail.mc? I'm using Sendmail >8.12.11 and Vacation 1.1. It may be possible that our server is >sending malformed "Reply-To:" or "From:" headers that the Vacation >program is unable to understand. It looks like that, yes - however vacation shouldn't read the headers to find the address to reply to, it should use the envelope sender, which doesn't have a "Full Name" component. Specifically the sendmail version uses the initial 'From ' line (not the same as the 'From:' header, though the address may be the same). So it seems like one of a) your sendmail config generates malformed headers, and your vacation program has at least one bug, or b) your sendmail config is OK, and your vacation program has at least two bugs. Sounds like there is a good case for replacing your vacation program with the one included in the sendmail distribution either way. To find out whether your sendmail config generates malformed headers, you can just look at the copy of the original e-mail saved in the user's mailbox per the .forward contents - if you're not sure, post it here. --Per Hedeland per(a)hedeland.org |