Sendmail not working

Moderator: crythias

Locked
alliancesupport
Znuny newbie
Posts: 6
Joined: 28 Oct 2016, 19:36
Znuny Version: 5.0.13

Sendmail not working

Post by alliancesupport »

I just did a fresh install and I'm trying to send an Admin Notification to myself. It says the message was sent but I didn't get it (not in junk mail either).

Where are the logs for this function?
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Sendmail not working

Post by root »

Check otrs log, maillog and the webserver error log.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
alliancesupport
Znuny newbie
Posts: 6
Joined: 28 Oct 2016, 19:36
Znuny Version: 5.0.13

Re: Sendmail not working

Post by alliancesupport »

I don't see anything related under Admin > System Log.

Where do I find those logs?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Sendmail not working

Post by jojo »

your Linux Admin will help you
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
alliancesupport
Znuny newbie
Posts: 6
Joined: 28 Oct 2016, 19:36
Znuny Version: 5.0.13

Re: Sendmail not working

Post by alliancesupport »

Ok, I've checked maillog and found that it's failing to send the email:

Oct 31 09:47:13 mycompany-otrs postfix/pickup[38072]: 3E7038119980: uid=48 from=<helpdesk@mycompany.com>
Oct 31 09:47:13 mycompany-otrs postfix/cleanup[38619]: 3E7038119980: message-id=<1477921633.685463.504230171@otrs.mycompany.com>
Oct 31 09:47:13 mycompany-otrs postfix/qmgr[1952]: 3E7038119980: from=<helpdesk@mycompany.com>, size=1047, nrcpt=1 (queue active)
Oct 31 09:47:17 mycompany-otrs postfix/smtp[38577]: connect to mycompany.com[172.16.207.0]:25: Connection timed out

However, according to the documentation here https://otrs.github.io/doc/manual/admin ... tings.html, sending mail should work out of the box so I'm not sure what's wrong. It can fetch emails just fine.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Sendmail not working

Post by jojo »

alliancesupport wrote: Oct 31 09:47:17 mycompany-otrs postfix/smtp[38577]: connect to mycompany.com[172.16.207.0]:25: Connection timed out

However, according to the documentation here https://otrs.github.io/doc/manual/admin ... tings.html, sending mail should work out of the box so I'm not sure what's wrong. It can fetch emails just fine.
It seems that your firewall and/or the postfix is not set up correctly. Receiving mails ist not the same as sending them.

No OTRS error, just improper setup of your linux system
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked