Sendmail smarthost not working

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

liberatio
Posts: 3
Joined: Tue Aug 16, 2011 7:33 pm

Sendmail smarthost not working

Post by liberatio »

Hello,

i have installed OpenEMM 2011 successfully and it works well. However when i tried to configure smarthost with smtp auth in sendmail, something gone wrong.
If i'm testing sendmail directly via console, emails goes through smtp provider:

Code: Select all

Aug 16 21:40:01 pegasus sm-mta[14226]: STARTTLS=client, relay=smtp.provider.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Aug 16 21:40:02 pegasus sm-mta[14226]: p7GIe0Sa014223: to=<my@email.com>, ctladdr=<user@localhost.localdomain> (1000/1000), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=120344, relay=smtp.provider.com. [72.4.117.23], dsn=2.0.0, stat=Sent (Ok: queued as AC9FDE8473)
However, when i'm sending emails via OpenEMM it tries directly from server:

Code: Select all

Aug 16 21:02:12 pegasus sendmail[14041]: 00000B00000000003: to=<my@email.com>, delay=00:00:36, xdelay=00:00:00, mailer=esmtp, pri=0, relay=email.com, dsn=4.0.0, stat=Deferred: Connection timed out with email.com
Sendmail configuration in sendmail.mc is following:

Code: Select all

define(`SMART_HOST',`smtp.provider.com')dnl 
FEATURE(`authinfo',`Hash -o /etc/mail/authinfo.db')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl

INPUT_MAIL_FILTER(`bav', `S=unix:/home/openemm/var/run/bav.sock, F=T')dnl
Sendmail is installed and configured as described in documentation for OpenEMM 2011. Why OpenEMM is ignoring sendmail settings?
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Sendmail smarthost not working

Post by maschoff »

We do not know why it is not working. Could it be that you changed the config, tested at shell level (which launches a new sendmail process reading the new config) but afterwards did not restart OpenEMM, so that OpenEMM is still running with the old config?
OpenEMM Maintainer
liberatio
Posts: 3
Joined: Tue Aug 16, 2011 7:33 pm

Re: Sendmail smarthost not working

Post by liberatio »

Unfortunately, i have tried to restart OpenEMM, checked sendmail proceses and etc. And still not working... Seems OpenEMM not getting these new settings... I don't have any ideas... What else should be done?
sal
Posts: 3
Joined: Wed Sep 07, 2011 10:48 am

Re: Sendmail smarthost not working

Post by sal »

I never configured a sendmail SMART_HOST or MAIL_HUB, so i have no idea why it's not working. The only difference in the logs i see is that you have a different ctladdr ("controlling user", see manual) or no ctladdr for the second try. Maybe it has something to do with that.

But my suggestion would be to try the following taken from the installation manual:

"When not using Sendmail you can define a smart mailer via file /home/openemm/conf/smart-relay with the syntax <username>:<password>@<smart-relay-domainname> The use of a smart-relay may be helpful for dial-up users to send out mails via their ISP. The name of the smart-relay is provided by your ISP."

By the way: Does it make sense in your setup to configure delayed bounce management ?
Post Reply