why can not authorized by mailx

General support questions
Post Reply
baber
Posts: 1
Joined: 2018/01/07 15:20:27

why can not authorized by mailx

Post by baber » 2018/01/07 15:22:17

dear all
Hi

i want use mailx but when i run that appear this :

1- authorized unsuccessfull
2-Error in certificate: Peer's certificate issuer is not recognized.

now i paste the mailx syntax that i used
what is my problem?

how do i have to create certificate?

Code: Select all



[root@pers ~]# echo -e "Dear All \nHi\n\nDaily bills info for has been attached \n\nBest regards\nos Group" | /bin/mailx -v -s "Warning" -S smtp=smtp://10.4.8.x.x -r "email@example.com" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user=email@example.com -S smtp-auth-password=secretpassword -S ssl-verify=ignore -S nss-config-dir=/etc/pki/nssdb -c email@example.com email@example.com
Resolving host 10.4.8.x.x . . . done.
Connecting to 10.4.8.x.x . . . connected.
220 Mail8.kb.net Microsoft ESMTP MAIL Service ready at Sun, 7 Jan 2018 18:21:50 +0330
>>> EHLO perspolis
250-Mail8.kb.net Hello [10.11.x.x]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250-XRDST
250 XSHADOW
>>> STARTTLS
220 2.0.0 SMTP server ready
Error in certificate: Peer's certificate issuer is not recognized.
Comparing DNS name: "*.kb.net"
Comparing common name: "*.kb.net"
host certificate does not match "10.4.8.x.x"
SSL parameters: cipher=3DES-EDE-CBC, keysize=168, secretkeysize=168,
issuer=CN=CA.karafarin.com,DC=karafarin,DC=com
subject=CN=*.kb.net,OU=IT,O=Karafarin Bank,L=Tehran,ST=Tehran,C=IR
>>> EHLO perspolis
250-Mail8.kb.net Hello [10.11.x.x]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH NTLM LOGIN
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250-XRDST
250 XSHADOW
>>> AUTH LOGIN
334 VWNldm5hbRU7
>>> Yi5zrXllZdlAa4FyYWdhcmluRmFuar5ptg==
334 UGGzc4evcnQ5
>>> b4BlbmNrfR==
535 5.7.3 Authentication unsuccessful
smtp-server: 535 5.7.3 Authentication unsuccessful
"/root/dead.letter" 18/423
. . . message not sent.
[root@pers ~]#

(edit/moderator: edited out email address and password and changed some bits in the AUTH dialog)

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: why can not authorized by mailx

Post by avij » 2018/01/07 16:11:53

Have you tried using that same username + password with some other mail program like Thunderbird? Do you have access to the mail server's log? If it's managed by someone else, you could ask whoever runs the mail server for assistance.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: why can not authorized by mailx

Post by pjsr2 » 2018/01/07 21:16:56

3DES ciphers are considered weak ciphers and are rejected by many servers.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: why can not authorized by mailx

Post by avij » 2018/01/07 22:22:08

I don't think the certificate matters here.

Post Reply