LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-30-2009, 03:16 AM   #1
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Sendmail Auth + Relay

I'm currently running a Slackware 13.0 server configured with Sendmail 8.14.3 and Dovecot 1.1.15. So far I have users able to authenticate and check mail, move messages betwixt folders, and send to other users on the domain.

Unfortunately, I am as of yet unable to have these users send mail to other domains, even after authenticating (IMAP is the preferred protocol). I've seen a lot of how-to's, especially here on LQ (and in the Slackware forum specifically), but have been unable to replicate others' success, save for exposing myself as an open relay (which is certainly not optimal by any stretch of the imagination).

Below is a selection from my primary configuration cf file:
VERSIONID(`Poetics setup for Slackware Linux')dnl                       
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun,goaway')dnl
define(`confTO_IDENT', `0')dnl                                                  
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl             
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl                           
define(`confCACERT_PATH', `/etc/mail/certs')dnl                                 
define(`confCACERT', `/etc/mail/certs/cacert.pem')dnl                           
define(`confSERVER_CERT', `/etc/mail/certs/sendmail.pem')dnl                    
define(`confSERVER_KEY', `/etc/mail/certs/sendmail.pem')dnl                     
define(`confCLIENT_CERT', `/etc/mail/certs/sendmail.pem')dnl
define(`confCLIENT_KEY', `/etc/mail/certs/sendmail.pem')dnl
define(`confAUTH_OPTIONS', `A p y')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
My end-goal is to not allow unauthenticated users any access, but to allow those who have accounts access to send mail to anyone they'd like. I'm not sure if the smart host forwards in the case of other permission denials, but it is currently not working as I would expect either.

Thanks in advance for any ideas you can send my way -- this is my first foray into Sendmail and I'm certainly enjoying how powerful it is, but will be much happier when it's up and running.
Old 08-31-2009, 09:31 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Hi Poetics,

This is not really assistance but have you tried postfix ? .. its a drop-in replacement for sendmail and its tons easier to configure


Old 08-31-2009, 11:08 AM   #3
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
I've used Postfix in the past, and am in fact more familiar with postfix, but sendmail is both something I need to learn how to use/configure, and a requirement for this project quoth managers on-high
Old 08-31-2009, 07:09 PM   #4
Registered: May 2005
Distribution: aptosid
Posts: 55

Rep: Reputation: 18
Your symptoms indicate that authentication isn't happening. Local mail is always delivered, no matter who sends it, even unauthenticated local users.

I assume that you're using sasl authentication. Do you have cyrus-sasl installed and configured?



auth, sendmail, slackware

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
Postfix relay to ISP's auth smtp server henkie32 Linux - Server 5 08-30-2012 04:20 AM
[Postfix/SMTPD] Getting no AUTH from server; open relay superhausi Linux - Security 2 11-19-2008 06:37 PM
Sendmail Auth Turrauko Linux - Software 1 02-28-2007 12:00 PM
need help in getting sendmail to relay using smtp-auth coolamit78 Linux - Networking 4 01-17-2007 12:20 PM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 05:54 PM

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration