LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2013, 05:10 PM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
getting mailx to use other machine's postfix server, not trusting my self-signed cert


title says it. i have a self-signed cert that i am using for tls on a postfix server, and i want to have other linux machines be able to mail script output via mailx and using this one postfix machine.

it's giving me this:

Code:
host certificate does not match "172.16.16.3"
smtp-server: 503 5.5.1 Error: authentication not enabled
where 172.16.16.3 is the mail server, even though i enabled tls in /etc/mail.rc:

Code:
.
.
.
set smtp=172.16.16.3:25
set smtp-use-starttls
set ssl-verify=warn
set ssl-auth=login
set ssl-ca-file=/usr/share/ca-certificates/cacert.pem
set ssl-key=/usr/share/ca-certificates/key.pem
set smtp-auth-user=<<EMAIL>>
set smtp-auth-password="<<PASS>>"
where cacert.pem is my self-signed CA and key.pem is the cert key.

logs from the mail server show this:
Code:
Jun 19 17:02:48 pLAN9-Server2 postfix/smtpd[13666]: connect from pLAN9-Server1.pLAN9.site[172.16.16.2]
Jun 19 17:02:48 pLAN9-Server2 postfix/smtpd[13666]: lost connection after AUTH from pLAN9-Server1.pLAN9.site[172.16.16.2]
Jun 19 17:02:48 pLAN9-Server2 postfix/smtpd[13666]: disconnect from pLAN9-Server1.pLAN9.site[172.16.16.2]
so it looks like the problem is that the client is not trusting the cert, apparently because "host certificate does not match 172.16.16.3". What does that mean, and is there a way for mailx to ignore it and carry on?

thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] postfix rejecting self-signed cert on remote smtp server? sneakyimp Linux - Server 10 06-27-2011 03:00 PM
[SOLVED] instruct mailx to use postfix instead of sendmail is it possible? matters Slackware 7 06-22-2011 04:33 PM
Can't import a cert (signed with OpenSSL) into a Java Key Store using keytool ajs418 Linux - Security 1 02-11-2011 05:51 PM
How to add SANs to a self signed SSL cert pirhana Linux - Security 1 11-08-2008 08:27 PM
Syntax using nail (mailx) for smtp without postfix or sendmail Casey Linux - Server 2 06-12-2007 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration