LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2009, 02:52 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Trixbox, SMTP_AUTH via Postfix


I read this article from this forum:

http://www.trixbox.org/wiki/howto-vo...c-att-your-isp

and can see that when I leave a message it goes into the postfix mail que but when it atttempt to send the email via my providers smtp server using smtp_auth via port 465 is fails. here is a snippet from the /var/log/mailllog. I got my smtp information from my e-mail client and it uses port 465 and secure socket layer or SSL to authentication. I have a feeling this is the issue. Is SMTP_Authentication the same as Secure connection over SSL? This has to be the issue!

Feb 20 15:39:43 trixbox1 postfix/smtp[5642]: 805912B8044: to=<test_user@test.com>, relay=smtpout.secureserver.net[64.202.165.58]:465, delay=300, delays=0.06/0.01/300/0, dsn=4.4.2, status=deferred (conversation with smtpout.secureserver.net[64.202.165.58] timed out while receiving the initial server greeting)
Feb 20 15:39:43 trixbox1 postfix/smtp[5641]: 8441D2B8043: to=<test_user@test.com>, relay=smtpout.secureserver.net[64.202.165.58]:465, delay=300, delays=0.11/0/300/0, dsn=4.4.2, status=deferred (conversation with smtpout.secureserver.net[64.202.165.58] timed out while receiving the initial server greeting)

Last edited by metallica1973; 02-20-2009 at 04:10 PM.
 
Old 02-20-2009, 04:58 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
The port is the issue. In order to use SSL for secure connections my isp say that I need to use 465. Here is the configurations I had before:

PHP Code:
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_auth_enable 
yes
smtp_sasl_password_maps 
hash:/etc/postfix/sasl_passwd
broken_sasl_auth_clients 
yes
smtp_sasl_auth_enable 
yes
smtp_always_send_ehlo 
yes
smtp_sasl_security_options 
=
smtp_generic_maps hash:/etc/postfix/generic
smtpd_recipient_restrictions 
permit_mynetworks reject_unauth_destination
relayhost 
smtpout.secureserver.net:465
myorigin 
secureserver.net
masquerade_domains 
secureserver.net 
and the minute I remove the 465:

PHP Code:
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_auth_enable 
yes
smtp_sasl_password_maps 
hash:/etc/postfix/sasl_passwd
broken_sasl_auth_clients 
yes
smtp_sasl_auth_enable 
yes
smtp_always_send_ehlo 
yes
smtp_sasl_security_options 
=
smtp_generic_maps hash:/etc/postfix/generic
smtpd_recipient_restrictions 
permit_mynetworks reject_unauth_destination
relayhost 
smtpout.secureserver.net
myorigin 
secureserver.net
masquerade_domains 
secureserver.net 
It works fine but the problem is that my username and password are being transmitted over the net in plain text which defeats the purpose of smtp_auth. Where do I specify the port to use when trying to use smtp_auth?
 
Old 02-20-2009, 05:28 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
apparently Postfix doesn't support SMTPS or SSL without the use of a tool called STUNNEL.

http://www.debian-administration.org/articles/604

any other suggestions?
 
Old 02-20-2009, 06:50 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Actually, the purpose of smtp auth is nothing to do with not transmitting in plaintext - that's what SSL/TLS is for.

Are you sure your ISP doesn't support TLS? For this you would use the methods described in http://www.postfix.org/TLS_README.html.

This would remove the need for stunnel.

Also note that when debugging these issues, try using debug_peer_level and debug_peer_list to get more detail in your logs.

HTH
 
Old 02-20-2009, 11:40 PM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
unfortunately they don't. stunnel it is.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
TrixBox in a VE sseeker Linux - Server 4 07-06-2008 10:43 PM
QMAIL Configure SMTP_AUTH ythaaa Linux - Networking 0 01-07-2008 05:01 AM
trixbox(r)(c)(tm) acid_kewpie General 7 12-29-2007 08:22 PM
PostFix SMTP_AUTH osga Linux - Software 1 12-18-2005 04:30 PM
POstfix smtp_auth with sasld assasin Debian 9 04-26-2005 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:44 AM.

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