April 25, 2024, 05:03:26 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Sendmail relaying authentication problems  (Read 3039 times)

Offline andrewfeberwee

  • New Member
  • Posts: 2
Sendmail relaying authentication problems
« on: May 18, 2009, 09:39:23 AM »
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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Sendmail relaying authentication problems
« Reply #1 on: May 31, 2009, 09:28:10 AM »
Did you check the access file? /etc/mail/access?
Whats ur domainname? I belive it needs to be listed in /etc/mail/local-host-names file?