send-mail: 501 5.5.4 Invalid Address - using unMenu


Recommended Posts

this started roughly a month ago after an update to the smtp package...not sure what changed but I keep getting that erro and my notification emails, no longer go through

 

any help is appreciated

after the update, did you re-set the configuration variables to point to your mail host and press the button to re-install with new values?
Link to comment

this started roughly a month ago after an update to the smtp package...not sure what changed but I keep getting that erro and my notification emails, no longer go through

 

any help is appreciated

after the update, did you re-set the configuration variables to point to your mail host and press the button to re-install with new values?

 

I did

Link to comment

this started roughly a month ago after an update to the smtp package...not sure what changed but I keep getting that erro and my notification emails, no longer go through

 

any help is appreciated

after the update, did you re-set the configuration variables to point to your mail host and press the button to re-install with new values?

 

I did

I think I found the cause of the problems you are having.

 

There is a variable in the ssmtp.conf file that looks like this:

rewriteDomain=

 

It is causing the From line to be sent with no domain, as you saw with

From: root@

 

Apparently, many mail hosts will allow the empty field, but yours will not.

 

An updated package.conf file will be made available, but I figured you might test it for me first.

 

It is attached.

 

Joe L.

mail-ssmtp-unmenu-package.conf

Link to comment

Joe - where would you put that file to test it out?

 

<edit> figured it out...in the /boot/packages   or at least that is where I put it <edit>

 

Think I'm getting the same thing

 

root@Tower:/boot/unmenu -> echo -e "Subject: a test\n\nThis is the email body." | ssmtp -d graywolf@***********

[<-] 220 pacmmta53 ESMTP ecelerity 2.2.2.45 r() Fri, 06 Aug 2010 14:12:01 -0400

[->] EHLO windstream.net

[<-] 250 8BITMIME

[->] AUTH LOGIN

[<-] 334 ***********

[->] **********==

[<-] 334 ********

[<-] 235 Authed. Go on.

[->] MAIL FROM:<root@>

[<-] 501 5.5.2 MAIL FROM syntax error

ssmtp: 501 5.5.2 MAIL FROM syntax error

 

 

Link to comment

Joe - where would you put that file to test it out?

 

<edit> figured it out...in the /boot/packages   or at least that is where I put it <edit>

 

Think I'm getting the same thing

 

root@Tower:/boot/unmenu -> echo -e "Subject: a test\n\nThis is the email body." | ssmtp -d [email protected]

[<-] 220 pacmmta53 ESMTP ecelerity 2.2.2.45 r() Fri, 06 Aug 2010 14:12:01 -0400

[->] EHLO windstream.net

[<-] 250 8BITMIME

[->] AUTH LOGIN

[<-] 334 VXNlcm5hbWU6

[->] cG1hc29uMTEyMEB3aW5kc3RyZWFtLm5ldA==

[<-] 334 UGFzc3dvcmQ6

[<-] 235 Authed. Go on.

[->] MAIL FROM:<root@>

[<-] 501 5.5.2 MAIL FROM syntax error

ssmtp: 501 5.5.2 MAIL FROM syntax error

 

 

You need to edit it change the config variables to your own e-mail host, then press the button to re-install with the edited values.

Leave the Re-Write Domain field blank.

 

Joe L

Link to comment

BTW just for others to know, my mailserver (ISP) is Windstream.

 

It worked with me leaving Re-Write Domain field blank (gave me a weird host name, probably the windstream mail server) and it also worked when I put in a domain.

 

Going to leave it with domain, makes it easier for my Mail Rules so they'll go into a specific folder.

 

Now to work on the rest of configurations and determining where I'm going to end up with the server. 

Wife said fans too loud to be in her computer/reading/tv room (where the modem/router/soon to be switch is located).

 

Guess I'll need to run some cable from that room to where I do my work (which is currently all via wireless)

 

 

 

 

Link to comment

thanks Joe but still no luck

 

Linux 2.6.32.9-unRAID.

root@Tower:~# echo -e "Subject: a test\n\nThis is the email body." | ssmtp -d

[<-] 220 BLU0-SMTP91.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Fri, 6 Aug 2010 13:49:15 -0700

[->] EHLO unraid.com

[<-] 250 OK

[->] STARTTLS

[<-] 220 2.0.0 SMTP server ready

[->] EHLO unraid.com

[<-] 250 OK

[->] AUTH LOGIN

[<-] 334 removed by me

[->] removed by me

[<-] 334 removed by me

[<-] 235 Authentication succeeded

[->] MAIL FROM:<root@>

[<-] 501 5.5.4 Invalid Address

ssmtp: 501 5.5.4 Invalid Address

root@Tower:~#

 

Link to comment

thanks Joe but still no luck

 

Linux 2.6.32.9-unRAID.

root@Tower:~# echo -e "Subject: a test\n\nThis is the email body." | ssmtp -d

[<-] 220 BLU0-SMTP91.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Fri, 6 Aug 2010 13:49:15 -0700

[->] EHLO unraid.com

[<-] 250 OK

[->] STARTTLS

[<-] 220 2.0.0 SMTP server ready

[->] EHLO unraid.com

[<-] 250 OK

[->] AUTH LOGIN

[<-] 334 removed by me

[->] removed by me

[<-] 334 removed by me

[<-] 235 Authentication succeeded

[->] MAIL FROM:<root@>

[<-] 501 5.5.4 Invalid Address

ssmtp: 501 5.5.4 Invalid Address

root@Tower:~#

 

You did not re-install, otherwise you would not have seen "root@" again.

 

 

Link to comment

thanks Joe but still no luck

 

Linux 2.6.32.9-unRAID.

root@Tower:~# echo -e "Subject: a test\n\nThis is the email body." | ssmtp -d

[<-] 220 BLU0-SMTP91.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Fri, 6 Aug 2010 13:49:15 -0700

[->] EHLO unraid.com

[<-] 250 OK

[->] STARTTLS

[<-] 220 2.0.0 SMTP server ready

[->] EHLO unraid.com

[<-] 250 OK

[->] AUTH LOGIN

[<-] 334 removed by me

[->] removed by me

[<-] 334 removed by me

[<-] 235 Authentication succeeded

[->] MAIL FROM:<root@>

[<-] 501 5.5.4 Invalid Address

ssmtp: 501 5.5.4 Invalid Address

root@Tower:~#

 

You did not re-install, otherwise you would not have seen "root@" again.

 

 

 

sorry Joe maybe I'm missing something.

 

I copied your file to the packages folder and replaced the existing one, then I went and updated my values just to make sure that I saved and re-installed them, but I get exactly the same result. Here's my syslog

 

Aug 6 19:24:37 Tower sSMTP[32680]: Set Root="removed by me"

Aug 6 19:24:37 Tower sSMTP[32680]: Set MailHub="smtphm.sympatico.ca"

Aug 6 19:24:37 Tower sSMTP[32680]: Set RemotePort="25"

Aug 6 19:24:37 Tower sSMTP[32680]: Set RewriteDomain=""

Aug 6 19:24:37 Tower sSMTP[32680]: Set HostName=""

Aug 6 19:24:37 Tower sSMTP[32680]: Set UseSTARTTLS="True"

Aug 6 19:24:37 Tower sSMTP[32680]: Set AuthUser="removed by me"

Aug 6 19:24:37 Tower sSMTP[32680]: Set AuthPass="removed by me"

Aug 6 19:24:37 Tower sSMTP[32680]: Set FromLineOverride="True"

Aug 6 19:24:37 Tower sSMTP[32680]: Creating SSL connection to host

Aug 6 19:24:37 Tower sSMTP[32680]: 220 BLU0-SMTP15.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at Fri, 6 Aug 2010 16:24:47 -0700

Aug 6 19:24:37 Tower sSMTP[32680]: EHLO

Aug 6 19:24:37 Tower sSMTP[32680]: 250 OK

Aug 6 19:24:37 Tower sSMTP[32680]: STARTTLS

Aug 6 19:24:37 Tower sSMTP[32680]: 220 2.0.0 SMTP server ready

Aug 6 19:24:38 Tower sSMTP[32680]: SSL connection using RC4-MD5

Aug 6 19:24:38 Tower sSMTP[32680]: EHLO

Aug 6 19:24:38 Tower sSMTP[32680]: 250 OK

Aug 6 19:24:38 Tower sSMTP[32680]: AUTH LOGIN

Aug 6 19:24:38 Tower sSMTP[32680]: 334 removed by me

Aug 6 19:24:38 Tower sSMTP[32680]: removed by me

Aug 6 19:24:38 Tower sSMTP[32680]: 334 removed by me

Aug 6 19:24:38 Tower sSMTP[32680]: removed by me

Aug 6 19:24:38 Tower sSMTP[32680]: 235 Authentication succeeded

Aug 6 19:24:38 Tower sSMTP[32680]: MAIL FROM:

Aug 6 19:24:38 Tower sSMTP[32680]: 501 5.5.4 Invalid Address

Aug 6 19:24:38 Tower sSMTP[32680]: 501 5.5.4 Invalid Address

 

Link to comment

Does the new e-mail package contain a configurable field for "Re-Write Domain" ?  (If not it is not the new package)

 

Did you leave it blank?  Or did you fill it in?

 

The file used by ssmtp is actually copied to

/usr/local/etc/ssmtp/ssmtp.conf

 

It sounds as if you are not updating it.  It probably should NOT have a

rewriteDomain=

line in it.

 

Link to comment

Does the new e-mail package contain a configurable field for "Re-Write Domain" ?   (If not it is not the new package)

 

Did you leave it blank?   Or did you fill it in?

 

The file used by ssmtp is actually copied to

/usr/local/etc/ssmtp/ssmtp.conf

 

It sounds as if you are not updating it.  It probably should NOT have a

rewriteDomain=

line in it.

 

 

thanks Joe. Copied the conf file again and now it's working. That's awesome thanks

Link to comment

Joe

 

the auto update overwrites my mail-ssmtp-unmenu-package.conf file. I tried adding #AUTO_UPDATE = NO but that didn't do anything

 

any thoughts?

 

thanks again

Let me take a look at the #AUTO_UPDATE function and make sure it is working as you would expect.

 

 

thanks Joe, please do

Link to comment

Joe

 

the auto update overwrites my mail-ssmtp-unmenu-package.conf file. I tried adding #AUTO_UPDATE = NO but that didn't do anything

 

any thoughts?

 

thanks again

Let me take a look at the #AUTO_UPDATE function and make sure it is working as you would expect.

 

 

hey Joe,

 

has this been fixed? otherwise I won't be able to run the updates as the mail file will get messed up every time.

 

after clicking "check for unmenu updates", is there a way to select to install only certain updates, maybe a check box to select the ones to install before clicking "install unmenu updates"

Link to comment
  • 2 weeks later...

Joe

 

the auto update overwrites my mail-ssmtp-unmenu-package.conf file. I tried adding #AUTO_UPDATE = NO but that didn't do anything

 

any thoughts?

 

thanks again

Let me take a look at the #AUTO_UPDATE function and make sure it is working as you would expect.

 

 

hey Joe,

 

has this been fixed? otherwise I won't be able to run the updates as the mail file will get messed up every time.

 

after clicking "check for unmenu updates", is there a way to select to install only certain updates, maybe a check box to select the ones to install before clicking "install unmenu updates"

As far as I know, I fixed this back on Aug 17th with this fix:

http://code.google.com/p/unraid-unmenu/source/detail?spec=svn149&r=145

 

I do not have a checkbox, but the AUTO_UPDATE=NO should be respected even if you used a MS-DOS editor and added a carriage-return at the end of the line that should not be there. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.