how to config the 'Sendmail' account

Moderator: crythias

Post Reply
schahaha
Znuny newbie
Posts: 1
Joined: 06 May 2019, 12:25
Znuny Version: 6.0.17-01

how to config the 'Sendmail' account

Post by schahaha »

Hi all:
I'm new to OTRS. The problem is that If I enable notifications when receiving email from mailbox , there always be a error like that:

1 Kernel::System::Email Building message for delivery. 2019.05.07 09:29:19 (Asia/Shanghai)
2 Kernel::System::Email Queuing message for delivery. 2019.05.07 09:29:19 (Asia/Shanghai)
3 Kernel::System::MailQueue Invalid email address Sender - otrs@master.localdomain: invalid otrs@master.localdomain (master.localdomain has no mail exchanger (MX) or A resource record defined.)! 2019.05.07 09:29:19 (Asia/Shanghai)
4 Kernel::System::Email Errors occurred during message sending: Error while queueing email to 'root@localhost' from 'otrs@master.localdomain'. Subject => 'OTRS Scheduler Daemon Cron: MailQueueSend'; 2019.05.07 09:29:19 (Asia/Shanghai)


I remember I didn't config any whose name like 'Sendmail'. So, who can help me ? Thanks a lot.
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: how to config the 'Sendmail' account

Post by fcasal »

You can check the otrs admin book, there you have several options of how to config the email.

Kind regards.
erikthijs
Znuny newbie
Posts: 5
Joined: 14 Oct 2011, 09:02
Znuny Version: 3.0.9
Real Name: Erik Thijs
Company: Katholieke Hogeschool Kempen

Re: how to config the 'Sendmail' account

Post by erikthijs »

Possible Way of Work for Centos 7:

# yum --enablerepo=extras install epel-release

# yum install ssmtp
# vi /etc/ssmtp/ssmtp.conf

Code: Select all

…
root=<INSERT SENDER ADDRES you want to use - e.g. otrs_norepy@mydomain.com>
…
Mailhub=<INSERT MAIL RELAY SERVER IP OR HOSTNAME - e.g. relay.mydomain.com>
…
RewriteDomain=<INSERT YOUR DOMAINNAME - e.g. mydomain.com>
…
Hostname=<INSERT YOUR FQDN - e.g. otrs.mydomain.com>
…
FromLineOverride=YES
…

# vi /etc/ssmtp/revaliases

Code: Select all

…
root:<>INSERT SENDER ADDRESS you want to use - e.g. otrs_noreply@mydomain.com>:<INSERT MAIL RELAY - e.g. relay.mydomain.com>
# ln -sf /usr/sbin/sendmail.ssmtp /etc/alternatives/mta
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: how to config the 'Sendmail' account

Post by wurzel »

Hi,

setting up a mailserver should be done by experienced person. From the ubuntu help website:
https://help.ubuntu.com/lts/serverguide/postfix.html.en
"Administering a Postfix server can be a very complicated task."
sending + receiving (correct) mails into and from the internet is not "yum install ssmtp" only.

just my 2 cents. :)

regards
Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
erikthijs
Znuny newbie
Posts: 5
Joined: 14 Oct 2011, 09:02
Znuny Version: 3.0.9
Real Name: Erik Thijs
Company: Katholieke Hogeschool Kempen

Re: how to config the 'Sendmail' account

Post by erikthijs »

wurzel wrote: 10 May 2019, 12:25 setting up a mailserver should be done by experienced person. From the ubuntu help website:
https://help.ubuntu.com/lts/serverguide/postfix.html.en
"Administering a Postfix server can be a very complicated task."

sending + receiving (correct) mails into and from the internet is not "yum install ssmtp" only.
Correct, therefore my assumption is that a mail relay is in place and fully configured (IP source filtering, dmarc, spf, authentication, spam filtering, ...). Configuring ssmpt is fairly straightforward by using a fully functional mail relay (relay.mydomain.com in my example).

concerning the mail relay server: you should certainly have this setup and configured by someone who knows what he/she's doing. If your ISP provides one, you could use that server.

2 cents added :)

Cheers,
Erik
Post Reply