Re: ssmtp configuration for server authorization

2008-01-16 Thread Paul Schmehl

--On Wednesday, January 16, 2008 00:39:00 -0700 [EMAIL PROTECTED] wrote:



This is my ssmtp.conf:


(yadda yadda)

I probably should have included a tail of my /var/log/maillog file:

  Jan 16 00:08:00 laptop sSMTP[6976]: Unable to connect to \
mail.domain.org port 25.
  Jan 16 00:08:00 laptop sSMTP[6976]: Cannot open mail.domain.org:25

As with the previous message, the server name and local hostname have been
sanitized thus:

laptop is the local machine using ssmtp
domain is the domain of the email address and SMTP server



This might give you a clue:

smtp 25/tcpmail #Simple Mail Transfer
smtp 25/udpmail #Simple Mail Transfer
smtps   465/tcp#smtp protocol over TLS/SSL (was ssmtp)
smtps   465/udp#smtp protocol over TLS/SSL (was ssmtp)

Unless you've configured your MTA in a non-standard way, smtps is on port 465 
not 25.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssmtp configuration for server authorization [solved]

2008-01-16 Thread Chad Perrin
On Wed, Jan 16, 2008 at 12:46:02PM -0600, Paul Schmehl wrote:
 
 This might give you a clue:
 
 smtp 25/tcpmail #Simple Mail Transfer
 smtp 25/udpmail #Simple Mail Transfer
 smtps   465/tcp#smtp protocol over TLS/SSL (was ssmtp)
 smtps   465/udp#smtp protocol over TLS/SSL (was ssmtp)
 
 Unless you've configured your MTA in a non-standard way, smtps is on port 
 465 not 25.

I was testing the configuration without TLS or SSL because I wanted to
eliminate encryption issues as variables while trying to nail down the
problem.  However . . .

I have discovered that the problem has nothing to do with my config
file's syntax and everything to do with the fact that the guys running
the remote SMTP server changed the authentication procedure and started
using a nonstandard port.  After getting the new information I needed,
and changing my configuration to suit, everything works like a charm.

Sorry about the unnecessary list noise.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
MacUser, Nov. 1990: There comes a time in the history of any project when
it becomes necessary to shoot the engineers and begin production.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ssmtp configuration for server authorization

2008-01-15 Thread perrin
I seem to be having some authorization problems with an SMTP server using
ssmtp.  I want to make sure the configuration is correct before I blame the
problem on something else (like the company that runs the server).

In the following ssmtp.conf file contents, assume these values for anything
to the right of an equals sign:

user is the mail account name
domain is the domain for the SMTP server
password is my password for the user mail account
laptop is the hostname of my laptop, where I'm running ssmtp
local is the local network name
mail is the hostname of the SMTP server (and mail.domain.org is the FQDN)

This is my ssmtp.conf:

  [EMAIL PROTECTED]

  mailhub=mail.domain.org

  [EMAIL PROTECTED]
  AuthPass=password

  rewriteDomain=domain.org

  hostname=laptop.local

  FromLineOverride=YES

Is something missing or mis-specified?  Did I misunderstand the purpose of
one of those variables?  Are some of those unusable with the FreeBSD version
of ssmtp?  Is there something else I should be doing for authorization on
the SMTP server?  Is something in the wrong order?

Note that on the SMTP server the complete login name for that mail account
is [EMAIL PROTECTED], not just user, according to the people managing the
server.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssmtp configuration for server authorization

2008-01-15 Thread perrin

 This is my ssmtp.conf:

(yadda yadda)

I probably should have included a tail of my /var/log/maillog file:

  Jan 16 00:08:00 laptop sSMTP[6976]: Unable to connect to \
mail.domain.org port 25.
  Jan 16 00:08:00 laptop sSMTP[6976]: Cannot open mail.domain.org:25

As with the previous message, the server name and local hostname have been
sanitized thus:

laptop is the local machine using ssmtp
domain is the domain of the email address and SMTP server

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]