3

I setup the simplest outgoing email server possible with ssmtp. It is giving me the error Authorization failed (535 Authentication credentials invalid). Here is my configuration without comments:

# /etc/ssmtp/ssmtp.conf
[email protected]
mailhub=mail.gmx.com:465
rewriteDomain=gmx.com
hostname=HP-Q101
rewriteDomain=gmx.com
FromLineOverride=YES
AuthUser=m[email protected]
AuthPass=my@super&secret*pa$$word
UseTLS=YES

Running output:

~$ ssmtp -vvv [email protected] < msg
[<-] 220 gmx.com (mrgmxus001) Nemesis ESMTP Service ready
[->] EHLO ASUS-N53SM
[<-] 250 AUTH LOGIN PLAIN
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] c3VwZXZvMZExZGdteZ3jb33=
[<-] 334 ZZFzc3dvcmZ3
[<-] 535 Authentication credentials invalid
ssmtp: Authorization failed (535 Authentication credentials invalid)

I understand that this implies a wrong username or password, but I have confirmed the password by copying it directly from my password manager. I also tried setting my user name to only myemail.

  • Anyone have luck setting up a GMX account?
  • If the problem isn't username/password, what could it possibly be?
1
  • Maybe you need STARTTLS?
    – fkraiem
    Jul 4, 2014 at 13:20

2 Answers 2

2

Change your config to match this:

# /etc/ssmtp/ssmtp.conf
[email protected]
mailhub=mail.gmx.com:587
rewriteDomain=gmx.com
hostname=gmx.com
FromLineOverride=YES
A[email protected]
AuthPass=yourpassword
UseSTARTTLS=YES

Source:
https://help.gmx.com/en/applications/pop3.html

2
  • Dead link. Also what's the point of having twice the rewriteDomain setting?
    – vmonteco
    Jan 2, 2018 at 12:13
  • There is no point of having it twice. I have corrected the typo
    – Rucent88
    Feb 16, 2018 at 21:03
0

In case someone else has still had this authentication problem even after the config file was changed to what Rucent88 proposed, the problem I had was with a complicated password for my GMX account, with special characters like punctuation, brackets, number sign, etc.

Maybe the parsing of the ssmtp.conf file isn't that great, anyway I changed it to something alphanumeric, and it worked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .