Welcome to WebmasterWorld Guest from 54.145.176.120

Forum Moderators: bakedjake

Message Too Old, No Replies

sendmail Help

Simple sendmail configuration problems

   
10:25 pm on Feb 4, 2009 (gmt 0)

10+ Year Member



Oh mighty Linux Help Thread, I beg thee for help!

I am relatively new to setting up servers from the command line, so please bare with me! I use to use Plesk but decided it would be best to ditch it and learn properly. I have been coping fine so far, but have run into a problem.

I have a Linux VPS server running CentOS 5. I am trying to get sendmail working so that I can,

* Access it externally via SMTP and relay when authenticated
* Add usernames and passwords for said SMTP authentication

I've been reading countless tutorials online, but can't seem to do either!

So far, I can,

* Send an email via SMTP if it is from localhost (without authentication may I add).
* Connect to sendmail via SMTP externally, but can't seem to authenticate to send an email

Any idea on what I need to do to get this working? I'm not interested in TLS authentication (right now). Plain old port 25 PLAIN LOGIN will do.

Fyi, I get the following when doing a simple test...

[root@vps1 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ##SERVER-NAME## ESMTP Sendmail 8.13.8/8.13.8; Wed, 4 Feb 2009 22:23:56 G
EHLO something
250-##SERVER-NAME## Hello localhost.localdomain [127.0.0.1], pleased to meetu
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
AUTH PLAIN
504 5.3.3 AUTH mechanism PLAIN not available
AUTH LOGIN
504 5.3.3 AUTH mechanism LOGIN not available
QUIT
221 2.0.0 ##SERVER-NAME## closing connection
Connection closed by foreign host.
5:03 pm on Feb 7, 2009 (gmt 0)

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Connect to sendmail via SMTP externally, but can't seem to authenticate to send an email

Are you sure your ISP allows port 25 connections?

I had to switch my SMTP server to port 587 not long ago when Comcast started clamping down.

I use to use Plesk but decided it would be best to ditch it and learn properly.

I used to do it properly and ditched it for Plesk just to avoid the kind of issues you're dealing with.

Unless you're just playing around as a hobby, control panels like Plesk, cPanel, etc. take care of so many little things by default that it's really not worth the trouble IMO to struggle with the little details.

Just my $0.02 worth.