Unable to Send Emails

Moderator: crythias

Locked
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Unable to Send Emails

Post by plattnat »

Hi Everyone,

I'm using OTRS 5.0.5 and tying to configure the email system, i'm using postfix under ubuntu 14.x server. The error message I'm getting is,

error OTRS-otrs.Console.pl-Maint::OTRSBusiness::AvailabilityCheck-00 Can't send message: !

Any idea where I can start?

Nathan
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Unable to Send Emails

Post by root »

What are your SysConfig setting for Core::Sendmail?
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 ?
darkdead
Znuny newbie
Posts: 81
Joined: 09 Jul 2015, 15:28
Znuny Version: 5.0.7

Re: Unable to Send Emails

Post by darkdead »

You use OTRS Free Version right? And you can't send emails from tickets right?

First Add this two lines into Kernel/Config.pm:
delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessAvailabilityCheck"};
delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessEntitlementCheck"};
Then the error dont come back. But i think the email configuration is not correct. Email config and the OTRSBusinessAvailabilityCheck are two different things.
Currently using: OTRS 5.0.7 | PostgresSQL 9.4.5 | Ubuntu 15.10
Extension: FAQ | Survey | System Monitoring | Time Accounting

Test System: OTRS 5.0.7 | PostgresSQL 9.4.5 | Ubuntu 15.10
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Re: Unable to Send Emails

Post by plattnat »

HI Guys,

Here's what the config says;

SendmailModule = Sendmail
SendmailModule::CMD /usr/bin/mail -i -f
SendmailModule::Host mail.example.com

AS for the kernal edit, where about in the Kernal/config.pm should I put those entries (and yes I am using the free edition)
darkdead
Znuny newbie
Posts: 81
Joined: 09 Jul 2015, 15:28
Znuny Version: 5.0.7

Re: Unable to Send Emails

Post by darkdead »

I do it there, where stand "insert ur own config Settings"

Image

For your Problem with postfix i cant help you. We are using an Exchange Server for Transport E-Mails.
Currently using: OTRS 5.0.7 | PostgresSQL 9.4.5 | Ubuntu 15.10
Extension: FAQ | Survey | System Monitoring | Time Accounting

Test System: OTRS 5.0.7 | PostgresSQL 9.4.5 | Ubuntu 15.10
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Re: Unable to Send Emails

Post by plattnat »

Thanks anyway, i've added those to the config.pm. Do i need to wait for the Daemon to pass over or so i need to restart OTRS to make these changes effective?
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Unable to Send Emails

Post by root »

Using SendmailModule = Sendmail could only work if you have a local MTA configured, most of the times forwarding e-mails to relay. Are you able to send e-mails from your Ubuntu server?
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 ?
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Re: Unable to Send Emails

Post by plattnat »

Yes Nagios is configured on this server and it sends emails no problem.
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Unable to Send Emails

Post by root »

can you confirm to send an email from the shell by using the mail command?
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 ?
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Re: Unable to Send Emails

Post by plattnat »

Can you give me the instructions on how to do that please?
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Unable to Send Emails

Post by root »

Code: Select all

mail -s Subject your@address.com
Just enter the text, line by line, and finish the mail by entering a single . followed by an enter.
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 ?
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Re: Unable to Send Emails

Post by plattnat »

When i try and use your command, the system just hangs and does nothing. Nagios is on the same system and is sending emails without any issue.

Postfix is configured to use a relayhost;

Code: Select all

mydomain = ourdomain.co.uk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = 192.168.87.114,$mydomain,$myhostname
relayhost = [192.168.87.114]:25
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
plattnat
Znuny newbie
Posts: 41
Joined: 26 Dec 2015, 09:42
Znuny Version: 6.2.1
Real Name: Nathan Platt

Re: Unable to Send Emails

Post by plattnat »

I've resolved this now, looks like an issue with the outgoing mailserver. Thanks for all the help.
Locked