mail and ssmtp config


Recommended Posts

Hi

 

I have just installed ssmpt_2.62.orig.tar.gz and the required complier and am trying to config using the page in package manager. When I run the "Send Test EMail" button on the user scripts page i get the following error:

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: 550 Sender address is invalid

 

My ISP does not require a secure connection so it should be as easy as:

 

Forward "root" email to: [email protected]

E-Mail Server: mail.myisp.com

Use TLS?(YES/NO): <left blank>

Mail ID: <left blank>

Mail Password: <left blank>

Mail Domain: localhost

From Line Override (YES/NO):YES 

 

Am I missing something? should there be a port number after email server?

???

 

As always your help would be invaluable.

 

Thanks

 

 

 

 

 

 

Link to comment

Hi

 

I have just installed ssmpt_2.62.orig.tar.gz and the required complier and am trying to config using the page in package manager. When I run the "Send Test EMail" button on the user scripts page i get the following error:

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: 550 Sender address is invalid

 

My ISP does not require a secure connection so it should be as easy as:

 

Forward "root" email to: [email protected]

E-Mail Server: mail.myisp.com

Use TLS?(YES/NO): <left blank>

Mail ID: <left blank>

Mail Password: <left blank>

Mail Domain: localhost

From Line Override (YES/NO):YES 

 

Am I missing something? should there be a port number after email server?

???

 

As always your help would be invaluable.

 

Thanks

Set

Use TLS = NO

If you leave it blank, it will default to "YES"

 

I don't think you need to set a port after the e-mail server.

Link to comment

Tried that and got this error:

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: Authorization failed (535 Empty password not allowed)

 

Now I'm really confused  ??? my ISP deffinately states that no secure connection is required.

 

Any other ideas?

 

Thanks

Link to comment

Tried that and got this error:

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: Authorization failed (535 Empty password not allowed)

 

Now I'm really confused  ??? my ISP deffinately states that no secure connection is required.

 

Any other ideas?

 

Thanks

What "port" do they suggest you use on their mail host?  Perhaps you do need to put the port number after the mail host.

 

This post:

http://lime-technology.com/forum/index.php?topic=911.msg7040#msg7040

will show you how to use telnet to learn exactly what they expect.  Try "telnet" on their port 25.

 

Joe L.

Link to comment

hmmmmm

 

Got this

EHLO250-nschwotgx02p.mx.bigpond.com

250-ETRN

250-AUTH=LOGIN PLAIN

250-AUTH LOGIN PLAIN

250-PIPELINING

250-DSN

250-8BITMIME

250 SIZE 15728640

help502 Command is locally disabled

 

Which I'm guessing is saying authorisation is required but it's not telling us what they expect

 

I added ":25" to the end of the mail server and got the same reply

 

changed the TLS to "YES", added my ID and password and got this

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: Cannot open mail.bigpond.com:25

Link to comment

In addition, my Buffalo box has email notifications turned on (and working) and these are the settings used:

 

SMTP Server Address mail.myisp.com

SMTP Port No. 25

POP3 Server Address <left blank>

POP3 Port No. <left blank>

Authentication <"disable" radio button>

User Name <left blank>

Password <left blank>

SSL/TLSSSL TLS <"disable" radio button>

 

 

Link to comment

hmmmmm

 

Got this

EHLO250-nschwotgx02p.mx.bigpond.com

250-ETRN

250-AUTH=LOGIN PLAIN

250-AUTH LOGIN PLAIN

250-PIPELINING

250-DSN

250-8BITMIME

250 SIZE 15728640

help502 Command is locally disabled

 

Which I'm guessing is saying authorisation is required but it's not telling us what they expect

 

I added ":25" to the end of the mail server and got the same reply

 

changed the TLS to "YES", added my ID and password and got this

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: Cannot open mail.bigpond.com:25

Now that last error seems to indicate you either do not need to add ":25" to specify the port, or, don't have the correct name for the email host, OR, have no DNS Nameserver defined in your settings.
Link to comment

Hi Joe,

 

OK, removed the ":25" and got this

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: Authorization failed (535 Empty password not allowed)

 

mail.bigpond.com is correct (double and triple checked)  ;D

 

Could you elborate a bit on

OR, have no DNS Nameserver defined in your settings.
please.

 

Thanks, I do apreciate your assistance

 

Link to comment

Hi Joe,

 

OK, removed the ":25" and got this

 

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: Authorization failed (535 Empty password not allowed)

 

mail.bigpond.com is correct (double and triple checked)  ;D

 

Could you elborate a bit on

OR, have no DNS Nameserver defined in your settings.
please.

 

Thanks, I do apreciate your assistance

 

To be getting the response you now are, you must have a DNS server set in your unRAID settings.  Obviously, it is looking for a password.

Have you tried just putting in your mail ID and leaving the password blank?

 

You can try invoking "ssmtp" directly in "debug" mode as shown in this post to see more of the interaction of it and your mail server:

http://lime-technology.com/forum/index.php?topic=5568.msg62776#msg62776

 

Joe L.

 

Joe L.

Link to comment

OK Joe,

 

I think we're getting somewhere, using the debugging mode I now have successful authentication using my email ID and password.

 

I think this is the last thing... I'm still getting an error but now it's

ssmtp: 550 Sender address is invalid
I've tried changing the "localhost" to my email address but no change. Have also tried changing the "From Line Override" to "NO" but the same error persists.

 

syslog looks like this

 

Jul 11 22:50:07 Brussels-unRAID sSMTP[4081]: MAIL FROM:

Jul 11 22:50:07 Brussels-unRAID sSMTP[4081]: 550 Sender address is invalid

Jul 11 22:50:07 Brussels-unRAID sSMTP[4081]: 550 Sender address is invalid

 

It's 23:00 here now and I need my beauty sleep  ;D

Thanks for all your help Joe, any further pointer will be gratefull recieved and worked on tomorrow. I'll be sure to post a resolution when I get one.

 

Thanks

Neil

Link to comment

OK am still struggling and radiply getting balder as I pull tufts of hair from my aching head  ???

 

I'm authenticating now, no problems but am still getting the error

ssmtp: 550 Sender address is invalid

 

When you have a moment could you walk me through your thoughts on the DNS comment you made earlier and how to check them and or change the settings.

 

Many thanks

 

 

 

Link to comment

Normally your DNS settings can be made in http://tower/settings.htm and I would guess that since you've downloaded unMENU that your DNS is in fact working.

 

You could try basically just copying all of your email settings and try using the default settings for a gmail account to make sure its truly mailing out. I just happen to use gmail so it was really easy to use. Then from Gmail I just forwarded my email to my phones account. Since my phone works with Gmail anyways.

Forward "root" email to: [email protected]

E-Mail Server: smtp.gmail.com:587

Use TLS?(YES/NO): Yes

Mail ID: myemail <------ Note no @gmail.com

Mail Password: mypassword

Mail Domain: [email protected]

From Line Override (YES/NO): YES

 

Not the most elegant way of doing things, but it would at least give you something to chew on while your trying to figure out your settings.

Link to comment

OK am still struggling and radiply getting balder as I pull tufts of hair from my aching head  ???

 

I'm authenticating now, no problems but am still getting the error

ssmtp: 550 Sender address is invalid

 

When you have a moment could you walk me through your thoughts on the DNS comment you made earlier and how to check them and or change the settings.

 

Many thanks

You are well past that class of error.  It would occur if you are unable to type

net lookup bigpond.com

and have the IP address of bigpond.com returned.

 

You are communicating with them, so that is not an issue.    (The DNS Server is usually set for you by DHCP if you use DHCP to set your sever's IP address.)

 

Your hair-style must be a lot like mine... ;)

 

It is complaining about your sending address.  (The value in the "Mail ID" field on the config form. )  Are you using any upper case letters in it? (probably should not)  Or, did you put a "@bigpond.com" after it? (should not)

 

Joe L.

Link to comment

Thanks both of you, sorry I've been struggling to get onto the forum... kept getting Page Not Found and mysql errors.... bizzare!

 

I'll take a look at your replies when I get home (work right now  :()

 

pretty sure tho my mail ID is just username without the "@bigpond.com"

 

I'll get back to you

 

Link to comment

Hi Guys,

 

The mail ID is, as I thought, just the ID.

 

No "@bigpond.com" and No uppercase letters either.

 

FYI I have tried with the "@bigpond.com" added - same error  ???

Mail being sent to root.  With any luck, it will be forwarded properly.

send-mail: 550 Sender address is invalid

 

Link to comment
  • 4 weeks later...

ok...got past a couple errors but now I'm stuck.

Where can I set the MAIL FROM value? And how would I have it persist between reboots?

 

Forward "root" email to: <myemail@host>

E-Mail Server: <smtp address of outbound server>

Use TLS?(YES/NO):  NO

Mail ID: <ID for outbound smtp server>

Mail Password: <PW for outbound smtp server>

Mail Domain:  <tried local host, tried host of smtp server, tried myemail@host>

From Line Override (YES/NO): <tried both YES and NO>

 

Get the following:

 

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

[<-] 220 pacmmta52 ESMTP ecelerity 2.2.2.45 r() Fri, 06 Aug 2010 10:06:53 -0400

[->] EHLO localhost

[<-] 250 AUTH LOGIN PLAIN

[->] 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

 

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.