LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-25-2009, 06:57 PM   #1
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Unhappy 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
 
Old 05-28-2009, 05:50 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Original Poster
Rep: Reputation: 82
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!
 
  


Reply

Tags
dovecot, sendmail, server, squirrelmail, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't build sendmail v8.13.4 with starttls support on slack 10.1 ddaas Slackware 5 10-01-2008 02:31 AM
Sendmail relaying... kloppster Linux - Software 3 07-19-2004 01:49 PM
Sendmail STARTTLS Manuel-H Linux - General 0 04-11-2003 09:20 AM
sendmail relaying atin Linux - Software 1 10-01-2002 11:21 AM
Sendmail 8.11 relaying?? magyartoth Linux - General 3 04-29-2002 04:24 PM


All times are GMT -5. The time now is 08:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration