since I’ve installed openSUSE 11.0 mailx has stopped to send mail and I don’t know why, and I’ve tried so much things to solve the problem that I don’t know what log post here…
My internet provider is orange which need authentification :
I’ve modified the value POSTFIX_RELAYHOST=“smtp-msa.orange.fr:587” in the config file /etc/sysconfig/postfix and then postfix reload but it changes nothing…
pc54g2 wrote:
> Hi,
>
> since I’ve installed openSUSE 11.0 mailx has stopped to send mail and I
> don’t know why, and I’ve tried so much things to solve the problem that
> I don’t know what log post here…
>
> My internet provider is orange which need authentification :
>
> [smtp-msa.orange.fr]:587
>
> Every time I try to send mail with echo “OK”| mailx -s “Test”
> myadress@yahoo.fr or myadress@orange.fr, the response is :
>
>
> Code:
> --------------------
> Diagnostic-Code: smtp; 554 <myadress@yahoo.fr>: Recipient address rejected: Missing Authentication
> --------------------
>
>
> I’ve modified the value POSTFIX_RELAYHOST="[smtp-msa.orange.fr]:587" in
> the config file /etc/sysconfig/postfix and then -postfix reload- but it
> changes nothing…
See /usr/share/doc/packages/postfix/html/SASL_README.html
‘Enabling SASL authentication in the Postfix SMTP client’
/etc/postfix/main.cf:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
pc54g2 wrote:
> Thanks,
>
> the value -smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd- was
> already existing in main.cf and I had to create -smtp_sasl_type =
> cyrus-
>
> sasl_passwd contains this :
>
>
> Code:
> --------------------
> [smtp-msa.orange.fr]:587 mylogin:mypasswd
> --------------------
Doesn’t appear to (apart from the hostname of the mailserver).
What does the Postfix log say when you try to deliver mail? Use more
verbosity if needed in master.cf.
smtp unix - - n - - smtp -v
Orange is developing a new technical solution for sending messages provides authentication of the sender.
The implementation of this solution requires a reconfiguration of your mailer. It is necessary to:
I replaced the values relayhost = [smtp-msa.orange.fr]:587 in main.cf and sasl-passwd with relayhost = [smtp-in.orange.fr]:587 but it does not change anything
A practical suggestion: Use a mail client like Thunderbird to debug the authentication and get it working before you try it with postfix. From what orange is saying, you should use a different server and port, and there is no encryption needed but authentication is needed.
Otherwise, couldn’t it be the name of the “user agent” : “Heirloom mailx 12.2 01/07/07” which is not recognized by the server ? if right, is it possible to modify this name, using for example the name “Mozilla Thunderbird” ?
I ask this because I think to an equivalent thing when we try to post data with curl on some websites which need authentification of the browser (option curl -A)
I don’t think the mail agent would have anything to do with it, as your ISP would have to deal with all sorts of mail agents from clients. As for the username, in Thunderbird you can specify the username that is sent to the SMTP server and it will prompt you for the password. My guess is it would be the same password you use to fetch your mail from your ISP’s POP3 or IMAP server.
pc54g2 wrote:
> Are you sure about this mailserver?
>
> I think this is the good smtp parameter
>
> Translation of this webpage ‘Orange’ (http://tinyurl.com/ynpclc) :
>
>> Orange is developing a new technical solution for sending messages
>> provides authentication of the sender.
>> The implementation of this solution requires a reconfiguration of your
>> mailer. It is necessary to:
>> - Change the address of the sending server: SMTP-msa.orange.fr instead
>> of smtp.orange.fr,
>> - Change the port used by sending: 587 instead of 25,
>> - Enable authentication.
Ok, strange that this host didn’t respond from here.
> Sep 20 10:23:24 linux-0ew4 postfix/smtp[6693]: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
Check sasl_passwd and do a postmap /etc/postfix/sasl_passwd first.
LittleRedRooster schrieb:
> pc54g2 wrote:
>> Translation of this webpage ‘Orange’ (http://tinyurl.com/ynpclc) :
>>
>>> Orange is developing a new technical solution for sending messages
>>> provides authentication of the sender.
>>> The implementation of this solution requires a reconfiguration of your
>>> mailer. It is necessary to:
>>> - Change the address of the sending server: SMTP-msa.orange.fr instead
>>> of smtp.orange.fr,
>>> - Change the port used by sending: 587 instead of 25,
>>> - Enable authentication.
>
> Ok, strange that this host didn’t respond from here.
It’s probably only reachable from inside the Orange customer network.
Would make sense for an MSA server.
>> Sep 20 10:23:24 linux-0ew4 postfix/smtp[6693]: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
>
> Check sasl_passwd and do a postmap /etc/postfix/sasl_passwd first.
Check sasl_passwd and do a postmap /etc/postfix/sasl_passwd first.
here is what I tried :
I’ve first opened /etc/postfix/sasl_passwd without modifing anything in this file, and I’ve just saved the document. Nothing really important…
Then, I made postmap /etc/postfix/sasl_passwd and postfix reload in a root’s shell
I wrote echo “OK”| mailx -s “Test” myadress@yahoo.fr and I’ve immediatly received the mail. Idem with my another email (Orange)
pc54g2 wrote:
> Hi,
>
>> Check sasl_passwd and do a postmap /etc/postfix/sasl_passwd first.
>
> here is what I tried :
>
> I’ve first opened -/etc/postfix/sasl_passwd- without modifing anything
> in this file, and I’ve just saved the document. Nothing really
> important…
Next time if you want to debug a Postfix db file, do:
postmap -q key database-file
E.g.
$sudo postmap -q “xs4all.nl” /etc/postfix/transport
smtp:localhost:465
You will see immediately if a key is present in a db file.
> Then, I made postmap -/etc/postfix/sasl_passwd- and -postfix reload- in
> a root’s shell
>
> I wrote -echo “OK”| mailx -s “Test” myadress@yahoo.fr- and I’ve
> immediatly received the mail. Idem with my another email (Orange)
>
> So it seems everything works fine now. Thank you.