Can not send outbound mail

Moderator: crythias

Locked
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

Can not send outbound mail

Post by zbigniew »

OTRS 5.0.5/5.0.6 on CentOS 6.7 64bit. otrs.CheckModules.pl says I have all modules installed except unused Oracle.

I have problem with sending outbound mail from link:
/otrs/index.pl?Action=AgentTicketEmailOutbound;TicketID=1
When I click 'Send message' button at the bottom any browser I use instead of sending mail asks me to download 0 size index.pl file.
When I download it it is really zero size - empty index.pl file saved. Mail is not sent.

Adding to httpd.conf ssl.conf:
Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .pl
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
makes no difference. Web browser still asks for downloading 0 size index.pl file.
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Can not send outbound mail

Post by jnelson »

I think this is related to pl handling in your apache config. Check this thread:

viewtopic.php?t=18944

And then I read the rest of your post. Have you installed Postfix? Not sure if that's the possible culprit or not but worth a check

# yum list postfix
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: dallas.tx.mirror.xygenhosting.com
* epel: dl.fedoraproject.org
* extras: ftp.osuosl.org
* updates: repos.dfw.quadranet.com
Installed Packages
postfix.x86_64
OTRS 5 on CentOS 7.1
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

Re: Can not send outbound mail

Post by zbigniew »

Yes postfix is installed.

Code: Select all

yum list installed postfix
postfix.x86_64          2:2.6.6-6.el6_7.1              @updates
But otrs uses SMTP for sending.
Core::Sendmail:
SendmailModule: SMTP
and have Host, AuthUser, AuthPassword correctly configured. OTRS is sending mail everywhere else except this form at /otrs/index.pl?Action=AgentTicketEmailOutbound;TicketID=1

Reinstalled otrs 5.0.6, executed, /opt/otrs/bin/otrs.SetPermissions.pl, /opt/otrs/bin/otrs.CheckModules.pl, restarted apache but this form still fails to send mail.

Can I debug somehow this Action=AgentTicketEmailOutbound or run it from text console to better see why it fails? There is no errors in log files about this issue. There is not information at all that anything happened during using this form. There is no point from where I could start tracing this.
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: Can not send outbound mail

Post by jjurkus »

And if you try this from a different ticket, does the ticket ID in the url change?
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

Re: Can not send outbound mail

Post by zbigniew »

Thanks for reply.
jjurkus wrote:And if you try this from a different ticket, does the ticket ID in the url change?
Yes. Tried several ticket numbers and url ticket number changed accordingly. Checked that smtp password is ok (which uses same login/password/host as imap account). So host and login credentials for sending mail are ok.
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: Can not send outbound mail

Post by jjurkus »

zbigniew wrote:Yes. Tried several ticket numbers and url ticket number changed accordingly. Checked that smtp password is ok (which uses same login/password/host as imap account). So host and login credentials for sending mail are ok.
Oh, ok. I thought it was weird because you were only referring to that URL with TicketID=1 in it.
I think you had better turn on debug logging, and see what that says. Because if you read that other topic it says something about unable to send mail.

I've tried a few things to enable the debug log, but from my notes the thing that should work (in a recent version) is to put this in your Config.pm file:

Code: Select all

$Self->{'Debug'} = 5;
I've only been using OTRS for a couple of weeks, and my notes haven't been finalized, so it might be this doesn't work at all :? :D
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
Locked