[ic] email.tag

Bas Bezemer interchange-users@interchange.redhat.com
Thu Feb 21 10:25:01 2002


Hello Joachim,

Joachim Leidinger wrote:
> 
> Bas Bezemer wrote:
> > > > I'm having problems with the email.tag that is supposed to send
> > > > messages. But they appear once in a while and not at all. The error log
> > > > if IC doesn't give any warnings. Further I have set SendMailProgram to
> > > > the correct value (/usr/sbin/sendmail) but that has no effect.
> > > >
> > > > The strange thing is that on the same server resides a formmail.pl
> > > > script and a script to send ecards. And they work perfectly. The moment
> > > > you send a message or an ecard, they appear almost instantly in my email
> > > > box. What is happening?
> ....
> > > Wrong using of the email tag in your page?
> ...
> > Hi Joachim,
> >
> > I have tried various formats but with no predictable result. It seems
> > the email are flushed once in a while and then I get the email send in
> > the, lets say, last hour. And I still think some mails are lost. I tried
> > the old form_mail.cfg subroutine and played a bit with the code, but it
> > shows the same behaviour as the [email]-tag.
> >
> > Just speculating. Can it have something to do with IC (always better to
> > but the blame on someone else)? That the command to sendmail is not
> > closed correctly. And what is the difference between the call to
> > sendmail in Util.pm  and the email tag (
> > open(MVMAIL,"|$Vend::Cfg->{SendMailProgram} $to") versus
> > open(Vend::MAIL,"|$Vend::Cfg->{'SendMailProgram'} -t") ).
> 
There are no error messages in the error log of the catalog or
interchange. 

> Did you get any messages in your error.log files? What is
> /var/log/maillog saying?
On your suggestion a have taken a look at the maillog and this is what
is says:

Feb 21 15:03:14 nedxs04 sendmail[1248]: PAA01248: from=partijtje,
size=561, class=0, pri=30561, nrcpts=1,
msgid=<200202211403.PAA01248@nedxs04.nedxs.net>,
relay=partijtje@localhost
Feb 21 15:03:54 nedxs04 sendmail[1208]: PAA01208: from=root, size=4207,
class=0, pri=34207, nrcpts=1,
msgid=<200202211400.PAA01208@nedxs04.nedxs.net>, relay=root@localhost
Feb 21 15:03:55 nedxs04 sendmail[1208]: PAA01208: to=root, ctladdr=root
(0/0), delay=00:03:55, xdelay=00:00:01, mailer=local, stat=Sent
Feb 21 15:06:37 nedxs04 sendmail[1294]: PAA01294: from=partijtje,
size=503, class=0, pri=30503, nrcpts=1,
msgid=<200202211406.PAA01294@nedxs04.nedxs.net>,
relay=partijtje@localhost
Feb 21 15:06:38 nedxs04 sendmail[1296]: PAA01294: to=bas.bezemer@wxs.nl,
ctladdr=partijtje (528/503), delay=00:00:01, xdelay=00:00:01,
mailer=esmtp, relay=mail.wxs.nl. [195.121.6.51], stat=Sent (Message
received: GRVZ9P01.56L)
Feb 21 15:40:14 nedxs04 sendmail[1705]: PAA01248: to=hcom@wxs.nl,
ctladdr=partijtje (528/503), delay=00:37:00, xdelay=00:00:01,
mailer=esmtp, relay=mail.wxs.nl. [195.121.6.51], stat=Sent (Message
received: GRW0TP02.C9H)
Feb 21 15:52:41 nedxs04 sendmail[1892]: PAA01892: from=partijtje,
size=602, class=0, pri=30602, nrcpts=1,
msgid=<200202211452.PAA01892@nedxs04.nedxs.net>,
relay=partijtje@localhost
Feb 21 15:56:11 nedxs04 sendmail[1902]: PAA01902: from=partijtje,
size=552, class=0, pri=30552, nrcpts=1,
msgid=<200202211456.PAA01902@nedxs04.nedxs.net>,
relay=partijtje@localhost
Feb 21 15:59:28 nedxs04 sendmail[1921]: PAA01921: from=nobody, size=433,
class=0, pri=30433, nrcpts=1,
msgid=<200202211459.PAA01921@nedxs04.nedxs.net>, relay=nobody@localhost
Feb 21 15:59:28 nedxs04 sendmail[1923]: PAA01921: to=bas.bezemer@wxs.nl
(bas), ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, relay=mail.wxs.nl. [195.121.6.51], stat=Sent (Message
received: GRW1PR02.AYN)

The last 2 lines are from an ecard script. All the others are from the
email tag or form_mail-Globalsub. All the email adresses,
bas.bezemer@wxs.nl, hcom@wxs.nl etc., are all aliasses of my own
address. Maybe you are an expert on this. To me it looks like the
IC-user "partijtje" is subject to serious delays for sending mail
(delay=00:37:00 for message Feb 21 15:40:14) while the mail by the
"nobody" user goes straight through (delay=00:00:00). Can this be
manipulated? Is it possible to send the mails as "nobody"? And do you
see other obscure things? Should I have a word with my provider about
this?

Looks like it isn't a IC problem. Thanks already.

Regards,
Bas