LinuxQuestions.org
Visit Jeremy's Blog.
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-18-2009, 02:12 AM   #1
andrewfeberwee
Member
 
Registered: Feb 2007
Posts: 30

Rep: Reputation: 15
Question Cant get mail relaying to work (sendmail sasl cyrus upensuse 11)


Still mucking around with this. I am trying to get relaying working with my mail server so external users can use outlook on my server.

Here is the output from telnet
220 hatchnet.hatchnet.com.au ESMTP Sendmail 8.14.3/8.14.3; Mon, 18 May 2009 16:01:16 +1000
ehlo hatchnet
250-hatchnet.hatchnet.com.au Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP


Here is my mc file


divert(-1)
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)
VERSIONID(`Sendmail Config for hatchnet 2008-05-03')
OSTYPE(`linux')
DOMAIN(`generic')
define(`ALIAS_FILE', `/etc/aliases')

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
define(`confMILTER_LOG_LEVEL',`1')
RELAY_DOMAIN_FILE(`/etc/mail/relay-domains')
FEATURE(`use_cw_file')
FEATURE(`relay_entire_domain')
FEATURE(masquerade_envelope)
FEATURE(local_procmail)
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl

define(`confAUTH_OPTIONS', `A p y')dnl

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
define(`confLOCAL_MAILER', `cyrusv2')
define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')dnl

define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/cacert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/host.cert')dnl
define(`confSERVER_KEY', `CERT_DIR/host.key')dnl
define(`confCLIENT_CERT', `CERT_DIR/host.cert')dnl
define(`confCLIENT_KEY', `CERT_DIR/host.key')dnl

MAILER(smtp)
MAILER(procmail)
MAILER(local)
MAILER(`cyrusv2')

And here is what the log gives me when I send a mail
reject=550 5.7.1 <test9878@gmail.com>... Relaying denied. Proper authentication required

And yes, I have checked the box in outlook that says my outgoing mailserver requires authentication

I have created the key, cert and pem files correctly I think, just getting nowhere here

Any help would be good
 
Old 06-08-2009, 12:32 AM   #2
andrewfeberwee
Member
 
Registered: Feb 2007
Posts: 30

Original Poster
Rep: Reputation: 15
I have resolved this, my mc file now loks like this and all is well

divert(-1)
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)
VERSIONID(`Sendmail Config for ***** 2009-05-20 including TLS')
OSTYPE(`linux')

DOMAIN(`generic')
define(`ALIAS_FILE', `/etc/aliases')

define(`CERT_DIR', `/etc/mail/certs')
dnl define(`confCACERT_PATH', `CERT_DIR')
dnl define(`confCACERT', `CERT_DIR/ca-cert.pem')dnl
dnl define(`confSERVER_CERT', `CERT_DIR/host.cert')dnl
dnl define(`confSERVER_KEY', `CERT_DIR/host.key')dnl

define(`confTLS_SRV_OPTIONS', `V')

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
define(`confMILTER_LOG_LEVEL',`1')

FEATURE(`dnsbl',`dnsbl.sorbs.net',`"554 Rejected spam as" ${client_addr} " found in dnsbl.sorbs.net"')dnl
FEATURE(`enhdnsbl',`sbl.spamhaus.org',`"ACCESS DENIED. Mail from " $&{client_addr} " refused based on information from http://www.spamhaus.org/SBL"')dnl
FEATURE(`enhdnsbl',`dnsbl.njabl.org',`"ACCESS DENIED. Mail from " $&{client_addr} " refused based on information from http://njabl.org"')dnl
FEATURE(`enhdnsbl',`cbl.abuseat.org',`"ACCESS DENIED. Mail from " $&{client_addr} " refused based on information from http://cbl.abuseat.org"')dnl
FEATURE(`enhdnsbl',`bl.spamcop.net',`"ACCESS DENIED. Mail from " $&{client_addr} " refused based on information from http://spamcop.net/bl.shtml?"$&{client_addr}')dnl

RELAY_DOMAIN_FILE(`/etc/mail/relay-domains')
FEATURE(`use_cw_file')
FEATURE(`use_ct_file')
FEATURE(`relay_entire_domain')
FEATURE(masquerade_envelope)
FEATURE(local_procmail)

FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl


dnl define(`confAUTH_OPTIONS', `A p y')dnl
define(`confAUTH_OPTIONS', `A')dnl

define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')
DAEMON_OPTIONS(`Port=smtp, Name=MTA')

define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
define(`confLOCAL_MAILER', `cyrusv2')


MAILER(smtp)
MAILER(procmail)
MAILER(local)
MAILER(`cyrusv2')
 
  


Reply


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
Cant get mail relaying to work (sendmail sasl cyrus upensuse 11) andrewfeberwee Linux - Networking 1 05-15-2009 01:11 AM
Help Regarding Cyrus SASL pushpraj Linux - Newbie 1 11-28-2006 05:11 PM
Sendmail Cyrus SASL authentication problem demith Linux - Software 0 11-15-2006 03:19 AM
relaying mail with sendmail danrfxz Linux - Networking 1 11-01-2006 05:27 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 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
Open Source Consulting | Domain Registration