how to SMART RELAY with SMTP AUTH

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

Moderator: moderator

Omone
Posts: 2
Joined: Mon Mar 08, 2010 12:14 pm

how to SMART RELAY with SMTP AUTH

Post by Omone » Thu Oct 14, 2010 5:41 pm

Hi all,
I've purchased an SMTP send with authentication, but I'm not able to let the smart-relay configuration work properly.

I'm tailing all the openemm's log files and this is the output I get:

Code: Select all

==> /home/openemm/var/log/20101014-ubuntu-srv-web-semu.log <==
[14.10.2010  18:09:32] 13346 WARNING/349eTdcac00000001: Retry as sent to authsmtp.stid.it failed 400: 'EOF occurred in violation of protocol'
[14.10.2010  18:09:32] 13346 DEBUG/349eTdcac00000001: Skip incomplete bounce None/None/'EOF occurred in violation of protocol'
[14.10.2010  18:09:32] 13346 DEBUG/349eTdcac00000001: Updated qfile /home/openemm/var/spool/ADMIN/qf349eTdcac00000001
[14.10.2010  18:09:32] 13346 INFO/349eTdcac00000001: Softbounce 400: EOF occurred in violation of protocol
[14.10.2010  18:09:32] 13346 WARNING/349eTdcac00000002: Retry as sent to authsmtp.stid.it failed 400: 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol'
[14.10.2010  18:09:32] 13346 DEBUG/349eTdcac00000002: Skip incomplete bounce None/None/'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol'
[14.10.2010  18:09:32] 13346 DEBUG/349eTdcac00000002: Updated qfile /home/openemm/var/spool/ADMIN/qf349eTdcac00000002
[14.10.2010  18:09:32] 13346 INFO/349eTdcac00000002: Softbounce 400: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
this is my obscured smart-relay file.

Code: Select all

/home/openemm/conf/smart-relay
user:password@authsmtp.myprovider.it
I've got both user and password with '@' chars in them. How can I escape?
Let's assume my credentials are usern@me and p@ssword. I' tried this solutions but they didn't work:

Code: Select all

"usern@me":"p@ssword"@authsmtp.myprovider.it
usern\@me:p\@ssword@authsmtp.myprovider.it
<usern@me>:<p@ssword>@authsmtp.myprovider.it
Any help would really be appreciated... :roll:
iamboo - Security and Mobile Solutions
www.iamboo.it

pstorralba
Posts: 1
Joined: Thu Nov 22, 2012 2:59 am

Re: how to SMART RELAY with SMTP AUTH

Post by pstorralba » Thu Nov 22, 2012 3:06 am

Hi,

I just went over the same problem. Maybe this answer is a bit late for you, but it may help others. What I did was to edit bin/scripts/semu.py and change the separator character from '@' to a '|'. This is my diff:

Code: Select all

169c169
<                               parts = sexpr.split ('|')
---
>                               parts = sexpr.split ('@')
172c172
<                                       auth = '|'.join (parts[:-1]).split (':', 1)
---
>                                       auth = '@'.join (parts[:-1]).split (':', 1)
Once done, the conf/smart-relay file should be like:

Code: Select all

your@username|passw@rd|relay.host.com
Change the values to fit your needs and restart openemm. It worked for me. Maybe the Openemm guys should consider changing the file format reflecting their choice on the documentation.

Hope it helps.

maschoff
Site Admin
Posts: 2165
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: how to SMART RELAY with SMTP AUTH

Post by maschoff » Thu Nov 22, 2012 8:06 am

Thanks for your patch! We will discuss how we will approach this problem in the next release.
OpenEMM Maintainer

Post Reply