Use smtp relay for sendmail/mail

Moderator: crythias

Locked
pargatz
Znuny newbie
Posts: 11
Joined: 17 Dec 2015, 07:07
Znuny Version: 5.0.1
Real Name: Pargat Singh
Company: Bliss Tech Solutions

Use smtp relay for sendmail/mail

Post by pargatz »

Hi,

Am facing an issue with the OTRS outbound emails.

While trying to use smtp relay for sending outbound email.

If I configure the the core::sendmail to use smtp or smtps and set all the paramenters required, no mail goes anywhere and I start getting the errors while sending email stating cannot send email to the id myaddress@gmail.com

I tried configuring sendmail to use the smtp relay for sending the emails and even then the emails are not being sent.

Code: Select all

sendmail myaddress@gmail.com
From:mysend@mydomain.com
Subject:Test message 
this is a test email
.
But I tried to configure the default mail app to send using the smtp relay, am able to send emails successfully.

Code: Select all

set smtp=smtp://au-smtp-outbound-1.mimecast.com:587
set smtp-auth=login
set smtp-auth-user=mysend@mydomain.com
set smtp-auth-password=password

Code: Select all

echo "test mail"| mail -s "Message Subject" -r mysend@mydomain.com  myaddress@gmail.com
So I want to do one of the two below:
1) Use sendmail to configure smtp relay
2) Use default mail in otrs to send outbound email

I have to use the relay to send outbound emails I cant use the deafult sendmail.
OTRS version is 5.0.1
Locked