Email not going out

I am using Qmail-1.03, Apache 1.3.27, fastcgi, and RT-3.0.0 (the new
beta). I’m not sure whether this should be on devel@ or users@ so I
thought I’d start here.

First, I haven’t been able to find any logging, this was my first hope
of solving my problem. $rtdir/var/logs is empty. All functionality other
than email seems to be perfect.

When I create a new ticket no email goes out, despite the fact I created
a global scrip to “notify requestors and Ccs” on create. Perhaps I did
this wrong, basically I just went into the global section and created a
new scrip.

Rt-mailgate works fine*

RT_Config.pm is basically set to defaults- I changed the domain. I’ve
tried both sendmailpipe and sendmail. For safe keeping I’ve restarted
Apache.

Any tips on troubleshooting/configuration for outgoing email would be
greatly appreciated. Or links to correct manuals. All the documentation
I could find seems to be related more to incoming rather than outgoing
mail.

Thanks
Matt

  • The following created a ticket:
    [root@email rt-3.0.0b]# /usr/local/rt-3.0.0b/bin/rt-mailgate --url
    http://rt.careercast.com/ --queue general --action correspond

This is the body

Matt Simonsen wrote:

I am using Qmail-1.03, Apache 1.3.27, fastcgi, and RT-3.0.0 (the new
beta). I’m not sure whether this should be on devel@ or users@ so I
thought I’d start here.

As good as anywhere at the moment. :slight_smile:

First, I haven’t been able to find any logging, this was my first hope
of solving my problem. $rtdir/var/logs is empty. All functionality other
than email seems to be perfect.

You probably want to tweak $LogToFile in RT_Config.pm.

When I create a new ticket no email goes out, despite the fact I created
a global scrip to “notify requestors and Ccs” on create. Perhaps I did
this wrong, basically I just went into the global section and created a
new scrip.

Could this be another case of

http://www.fsck.com/rtfm/article.html?id=5#73

?
�|� http://www.bestpractical.com/rt – Trouble Ticketing. Free.

Matt Simonsen wrote:

I am using Qmail-1.03, Apache 1.3.27, fastcgi, and RT-3.0.0 (the new
beta).
$rtdir/var/logs is empty.

You probably want to tweak $LogToFile in RT_Config.pm.

Perfect, fixed this. Thanks.

When I create a new ticket no email goes out…

Could this be another case of

http://www.fsck.com/rtfm/article.html?id=5#73

I don’t think so.

My scrips are:

On Create Notify Requestors and Ccs with template Correspondence new
On Create Notify AdminCcs with template Correspondence

After creating a ticket as user jennifer, with cc: matt@careercast.com
and admincc: admin@careercast.com no emails are received.

Here’s var/log/rt.log- please point me in the correct direction if you
see what my problem is.

[Mon Feb 10 18:19:09 2003] [debug]: Guessed encoding: utf8
(/usr/local/rt-3.0.0b/lib/RT/I18N.pm:247)
[Mon Feb 10 18:19:09 2003] [debug]: now requiring
RT::Condition::AnyTransaction
(/usr/local/rt-3.0.0b/lib/RT/ScripCondition_Overlay.pm:154)
[Mon Feb 10 18:19:09 2003] [debug]: now requiring RT::Action::Notify
(/usr/local/rt-3.0.0b/lib/RT/ScripAction_Overlay.pm:145)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x95bb12c):
To is jennifer@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:110)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x95bb12c):
Cc is matt@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:111)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x95bb12c):
Bcc is (/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:112)
[Mon Feb 10 18:19:10 2003] [debug]: Does Content-Type: text/plain;
charset=“utf-8” match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does Content-Disposition: inline
match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does Content-Transfer-Encoding:
binary match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does MIME-Version: 1.0 match
RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does X-Mailer: MIME-tools 5.411
(Entity 5.404) match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does Subject: test match
RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does CC: matt@careercast.com match
RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: now requiring
RT::Condition::AnyTransaction
(/usr/local/rt-3.0.0b/lib/RT/ScripCondition_Overlay.pm:154)
[Mon Feb 10 18:19:10 2003] [debug]: now requiring RT::Action::Notify
(/usr/local/rt-3.0.0b/lib/RT/ScripAction_Overlay.pm:145)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x92f25bc):
To is (/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:110)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x92f25bc):
Cc is (/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:111)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x92f25bc):
Bcc is admin@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:112)
[Mon Feb 10 18:19:10 2003] [debug]: Does Content-Type: text/plain;
charset=“utf-8” match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does Content-Disposition: inline
match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does Content-Transfer-Encoding:
binary match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does MIME-Version: 1.0 match
RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does X-Mailer: MIME-tools 5.411
(Entity 5.404) match RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does Subject: test match
RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [debug]: Does CC: matt@careercast.com match
RT-Squelch-Replies-To
(/usr/local/rt-3.0.0b/lib/RT/Attachment_Overlay.pm:406)
[Mon Feb 10 18:19:10 2003] [info]: Ticket 13 created in queue ‘General’
(/usr/local/rt-3.0.0b/lib/RT/Ticket_Overlay.pm:584)

Thanks
Matt

Matt Simonsen wrote:

After creating a ticket as user jennifer, with cc: matt@careercast.com
and admincc: admin@careercast.com no emails are received.

Just clarifying:- no emails are received by /any/ of the three
people? Which of the three is performing the action?
What is the email address (according to RT’s user configuration)
of that person ?

Here’s var/log/rt.log- please point me in the correct direction if you
see what my problem is.

[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x95bb12c):
To is jennifer@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:110)
[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x95bb12c):
Cc is matt@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:111)

ok, we’ve picked up the requestor and cc in this scrip…

[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x92f25bc):
Bcc is admin@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:112)

… and this scrip has picked up the AdminCC.

So, why aren’t the emails being sent? I don’t know. :frowning: You’re
using qmail… and you’ve tried sendmail and sendmailpipe.
Did you:

Note that you should remove the ‘-t’ from $SendmailArguments

if you use 'sendmail rather than ‘sendmailpipe’

and did you stop and start (not just reload) the webserver?
Do your qmail logs show any attempt at sending?

RT should insert a line into your debug log if there are no
recipients found:-

    $RT::Logger->debug("$self: No recipients found. Not sending.\n");

which isn’t happening. So either Notify.pm (or SendEmail.pm?) is
bombing unexpectedly somewhere before this, or the problem lies
at the MTA.
�|� http://www.bestpractical.com/rt – Trouble Ticketing. Free.

Matt Simonsen wrote:

After creating a ticket as user jennifer, with cc: matt@careercast.com
and admincc: admin@careercast.com no emails are received.

Just clarifying:- no emails are received by /any/ of the three
people?

Right, that was what was happening.

ok, we’ve picked up the requestor and cc in this scrip…

[Mon Feb 10 18:19:10 2003] [debug]: RT::Action::Notify=HASH(0x92f25bc):
Bcc is admin@careercast.com
(/usr/local/rt-3.0.0b/lib/RT/Action/Notify.pm:112)

… and this scrip has picked up the AdminCC.

So, why aren’t the emails being sent? I don’t know. :frowning: You’re
using qmail… and you’ve tried sendmail and sendmailpipe.

I did. Sendmailpipe is what I had (have) settled on as being correct, so
from there I changed the SendEmail.pm to point to dd and a file.

and did you stop and start (not just reload) the webserver?

Yes.

Do your qmail logs show any attempt at sending?

No.

which isn’t happening. So either Notify.pm (or SendEmail.pm?) is
bombing unexpectedly somewhere before this, or the problem lies
at the MTA.

The problem was a mix of two - after writing the email to a file I
noticed the from wasn’t a valid email address. This caused qmail’s
sendmail wrapper to bomb, with no logging. After fixing the from address
in the config file everything looks good.

Thanks-
Matt