[BlueOnyx:20526] I keep on losing my Smart Relay and I'm hoping that someone can tell me how to stop is happening

blueonyxuser at gmail.com blueonyxuser at gmail.com
Mon Jan 16 14:01:25 -05 2017


Hello all

I am currently running;

	BlueOnyx 5107R/5108R Series
	5107R

Most BO updates don't stop my Smart Relay but then one does and it causes me a lot of complaints.

My Smart Relay is setup like this;

1. Set your authorization information by putting the following line to /etc/mail/authinfo file:

AuthInfo:SmartRelayIPAddress "U:xxxxxx" "P:yyyyyyy" "M:LOGIN"

2. Add following lines to /etc/mail/sendmail.mc (check if appropriate settings don't already exists):

define(`SMART_HOST', `SmartRelayIPDomain')dnl 
define(`RELAY_MAILER_ARGS', `TCP $h specificport')dnl
FEATURE(`authinfo')dnl

… and my Smart Relay is not listening on port 25 but deliberately on a specific port in a different range so I set that.

3. Update sendmail.cf and access.db files:   

cd /etc/mail  
m4 sendmail.mc >sendmail.cf  
makemap hash authinfo < authinfo 

4. Reload or restart sendmail:  
/etc/init.d/sendmail restart


I did put the www.x.y domain into 

Smart Relay Server (optional)

… but there are no authentication or port entries available ( it did put the Smart_HOST entry in sendmail.mc though ) so it wasn't enough.

Once I redo the 4 steps again after it is broken my Smart Relay should now work but what actually seems to be happening now is that irrespective of whether the files are modified in steps 1 to 4 the emails do not go out because for some reason the 'from=' and 'to=' are missing so if the following log snippet in the '++++' are used it shows that if I turn on Automatic Authentication in the SmartHost so that any email from the IP address of the BO machine is accepted irrespective of the SMTP AUTH the email is accepted but in the second log snippet it shows that if I turn off the Automatic Authentication in the SmartHost then the email is not accepted.

When I view the email in Outlook that is successfully delivered the To and From ( with Automatic Authentication enabled ) are perfectly valid and the SmartHost log shows the emailed being delivered and the To and the From are there but when I turn off Automatic Authentication  the SmartHost says;

	Incoming SMTP connection from [<Smart_Host_IP>]
	SMTP -> 220 <Smart_Host_DNS> (#3.01)
	SMTP <- EHLO <Local_Domain>
	SMTP -> 250-<Smart_Host_DNS> 250-AUTH CRAM-MD5 LOGIN PLAIN 250-SIZE 524288000 250 Ready
	SMTP <- MAIL From:<client at clientdomain> SIZE=3144
	SMTP -> 250 2.5.0 Sender <client at clientdomain> Accepted (#3.02)
	SMTP <- RCPT To:<emailaddress at live.com.au>
	SMTP -> 550 5.5.0 Relaying Denied <emailaddress at live.com.au> (#4.63)
	Relaying denied from <client at clientdomain> to <emailaddress at live.com.au>
	SMTP <- DATA
	SMTP <- RSET
	SMTP -> 250 2.5.0 Ok (#3.07)
	Connection closed by remote host

... so there is something strange about what BO is sending but I cannot figure it out - does anyone have any thoughts on this?

It is strange that if I go from my personal account on the Smart Host and send to the @live account I have no problems relaying to the @live account.

I don't want to enable Automatic Authentication because that risks a rouge sender behind the BO being able to send spam so that is not the answer sadly.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Jan 17 05:04:02 Local_Domain sendmail[8968]: AUTH=server, relay=[192.168.29.1], authid=<authuser>, mech=LOGIN, bits=0
Jan 17 05:04:02 Local_Domain sendmail[8968]: v0GI419B008968: from=, size=2763, class=0, nrcpts=1, msgid=<003b01d27022$ea94b960$bfbe2c20$@<authuser>, proto=ESMTP, daemon=MSA, relay=[192.168.29.1]
Jan 17 05:04:03 Local_Domain sendmail[8975]: v0GI419B008968: to=, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=122763, relay=<Smart_Host_DNS>. [<Smart_Host_IP>], dsn=2.0.0, stat=Sent (2.5.0 Ok Message queued (#3.05))


Jan 17 05:06:13 Local_Domain sendmail[9752]: AUTH=server, relay=[192.168.29.1], authid=<authuser>, mech=LOGIN, bits=0
Jan 17 05:06:14 Local_Domain sendmail[9752]: v0GI6Dw4009752: from=, size=2748, class=0, nrcpts=1, msgid=<004801d27023$38fff330$aaffd990$@<authuser>>, proto=ESMTP, daemon=MSA, relay=[192.168.29.1]
Jan 17 05:06:14 Local_Domain sendmail[9757]: v0GI6Dw4009752: to=, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=122748, relay=<Smart_Host_DNS>. [<Smart_Host_IP>], dsn=5.1.1, stat=User unknown
Jan 17 05:06:14 Local_Domain sendmail[9757]: v0GI6Dw4009752: v0GI6Ew4009757: DSN: User unknown
Jan 17 05:06:14 Local_Domain sendmail[9757]: v0GI6Ew4009757: to=, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33985, relay=<Smart_Host_DNS>., dsn=4.0.0, stat=Deferred: Connection reset by <Smart_Host_DNS>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

But I also need to protect myself from updates that stop my Smart Host and if anyone can tell me how to do that I'd really appreciate it ☺

Regards

Tony






More information about the Blueonyx mailing list