LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sendmail config has me stumped, StartTLS and relaying (https://www.linuxquestions.org/questions/linux-server-73/sendmail-config-has-me-stumped-starttls-and-relaying-728437/)

irishbitte 05-25-2009 05:57 PM

sendmail config has me stumped, StartTLS and relaying
 
Hi folks,

I'm having a pretty crap day here, trying to set up a sendmail MTA, never did one before, always used postfix!

Anyway, I've probably made loads of mistakes all over the place, so any advice will be gratefully received.

My setup is as follows:

An ubuntu 8.10 VPS:
Sendmail
Dovecot
Squirrelmail

I'm trying to not open myself as an open relay, yet auth a few users who will be administering the server. So PAM authentication is perfect. Other than that, squirrelmail is configured and working, I can send and receive mail no probs.

What I want: well, squirrelmail is ok when I'm out and about, but I want to use Thunderbird to login to the IMAP server. This is working. I can see my folders, move things around, even save mails in the drafts folder. So it appears dovecot is sufficiently setup to at least be functional. It doesn't seem to be moaning in the logs either.

The problem occurs when I compose a message and hit send. I have sendmail configured far enough that I could save my self signed cert. This much is done. Then, Thunderbird repeatedly asks for my password. Eventually, I have to cancel sending.

Meanwhile, this command:
Code:

less /var/log/mail.log | tail
shows up an error like this:
Code:

srv1 sm-mta[26301]: n4PMgQ6P026301: [client IP] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4
I've googled and searched LQ, all in vain. Any help would be greatly appreciated. Here is a cutdown version of sendmail.mc (no comments included):
Code:

divert(-1)dnl
#-----------------------------------------------------------------------------
# $Sendmail: debproto.mc,v 8.14.3 2008-05-20 07:20:30 cowboy Exp $
#
# Copyright (c) 1998-2008 Richard Nelson.  All Rights Reserved.
#
# cf/debian/sendmail.mc.  Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.14.3
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
#        file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the following:
#        * make  (or make -C /etc/mail)
#        * sendmailconfig
#        * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# The first two options are preferred as they will also update other files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#-----------------------------------------------------------------------------
divert(0)dnl
#
#  Copyright (c) 1998-2005 Richard Nelson.  All Rights Reserved.
#
#  This file is used to configure Sendmail for use with Debian systems.
#
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.14.3-4 2008-05-20 07:20:30 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
undefine(`confHOST_STATUS_DIRECTORY')dnl        #DAEMON_HOSTSTATS=
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp')dnl
define(`confPRIVACY_FLAGS',dnl
dnl # `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
`needmailhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl # This section added for SSL connections
include(`/etc/mail/tls/starttls.m4')dnl
DAEMON_OPTIONS(`Family=inet, Port=465, Name=MTA-SSL, M=s')dnl
dnl # enable down to here for SSL
FEATURE(`use_cw_file')dnl
dnl # Added 200509 for antispam
FEATURE(`dnsbl',`sbl.spamhaus.org',`Rejected - see http://spamhaus.org/')
FEATURE(`access_db', , `skip')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl # added 200509 for relay of domain mail
FEATURE(`relay_entire_domain')
FEATURE(`relay_based_on_MX')
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl


irishbitte 05-28-2009 04:50 PM

Well, thankfully my service provider for this remote VPS has disabled the node monitor on the VPS long enough to allow me to install postfix, all working now!


All times are GMT -5. The time now is 04:32 PM.