Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

send-mail: 501 5.5.4 Invalid Address - using unMenu

Featured Replies

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

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?
  • Author

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

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

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

 

 

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

Thanks Joe. That did the trick for me.  Test e-mail from unMenu now coming thru

 

Thanks Joe. That did the trick for me.  Test e-mail from unMenu now coming thru

Great news.  I can upload it to google.code so it will replace the older version that did not work for you (for the next person with a picky mail-host)

 

Joe L.

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)

 

 

 

 

  • Author

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:~#

 

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.

 

 

  • Author

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

 

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.

 

  • Author

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

  • Author

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

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.

 

  • Author

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

  • Author

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"

  • 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. 

  • Author

thanks Joe, it's working great!!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.