Can't send message using Postfix and OTRS 6.0.32

Moderator: crythias

Post Reply
sinay
Znuny newbie
Posts: 4
Joined: 11 Jul 2021, 16:32
Znuny Version: OTRS 6.0.32
Real Name: Yanis Abt
Company: Les Humoristes de Cannes

Can't send message using Postfix and OTRS 6.0.32

Post by sinay »

Hi !

I'm a newbie in the OTRS installation, I juste used it before for the work and I want to use it in my organization now.
I installed it successfully and postfix too.

I'm on Ubuntu 20.04, on a dedicated server.

But when I want to send an email (creating email ticket) I get this message :

Code: Select all

10		Kernel::System::Email	Error sending message using backend 'Kernel::System::Email::Sendmail'.	11.07.2021 17:01:04 (Europe/Paris)
11		Kernel::System::MailQueue	Message could not be sent! Error message: Can't send message: !	11.07.2021 17:01:04 (Europe/Paris)
12		Kernel::System::MailQueue	Temporary problem returned from server, requeuing message for sending. Message: SMTPCode: -, ErrorMessage: Can't send message: !	11.07.2021 17:01:04 (Europe/Paris)
Is someone knows what the problem is?

Maybe a bad config of Postfix, but I can send email with the command-line, so I don't think that the problem comes from there.

Hope someone will be able to help me!

If you have any questions, don't hesitate.
wurzel
Znuny guru
Posts: 3228
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Can't send message using Postfix and OTRS 6.0.32

Post by wurzel »

Hi,

if postfix is configured properly and correct there is not additional config needed in OTRS. It works out of the box.
So you actually have to check your postfix config.
Check your mail log!

kind regards
Flo
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.
sinay
Znuny newbie
Posts: 4
Joined: 11 Jul 2021, 16:32
Znuny Version: OTRS 6.0.32
Real Name: Yanis Abt
Company: Les Humoristes de Cannes

Re: Can't send message using Postfix and OTRS 6.0.32

Post by sinay »

Hey,

Thank you for your answer!

I checked the mail.log and got this:

Code: Select all

Jul 12 00:07:54 localhost postfix/smtp[2525]: 5B1D31C1EFA: to=<yanabt010@gmail.com>, relay=smtp.gmail.com[64.233.184.108]:587, delay=1.6, delays=0.09/0.15/0.57/0.75, dsn=2.0.0, status=sent (250 2.0.0 OK  1626041274 u9sm12119450wmq.41 - gsmtp)
Jul 12 00:07:54 localhost postfix/qmgr[1703]: 5B1D31C1EFA: removed
Jul 12 00:11:16 localhost postfix[2991]: error: to submit mail, use the Postfix sendmail command
Jul 12 00:11:17 localhost postfix[2991]: fatal: the postfix command is reserved for the superuser
(I tried to make otrs as sudo on my localhost, but didn't work)

Do you know something about that?

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

Re: Can't send message using Postfix and OTRS 6.0.32

Post by root »

Hi,

What is the value of the setting SendmailModule::CMD?

- Roy
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 ?
sinay
Znuny newbie
Posts: 4
Joined: 11 Jul 2021, 16:32
Znuny Version: OTRS 6.0.32
Real Name: Yanis Abt
Company: Les Humoristes de Cannes

Re: Can't send message using Postfix and OTRS 6.0.32

Post by sinay »

Good Day,

The value is: /usr/sbin/postfix

Thanks,
sinay
Znuny newbie
Posts: 4
Joined: 11 Jul 2021, 16:32
Znuny Version: OTRS 6.0.32
Real Name: Yanis Abt
Company: Les Humoristes de Cannes

Re: Can't send message using Postfix and OTRS 6.0.32

Post by sinay »

Finally!

I tried to make the value as default, and it works! I don't why I changed it, but anyway !

5 days that I'm on it, I feel free now :)

Thanks for your help, Flo and Roy !
Post Reply