Cant get mail relaying to work (sendmail sasl cyrus upensuse 11)
Okay, I've been mucking about with this for a week now and getting nowhere.
Background:
I have an opensuse server running find with sendmail and cyrus handling mail with np. A few months agao, a friend asked me to host his website and email, np there either, gave him access to his email via both horde and squirrelmail, now he would like to access his mail through Outlook.
So I opened the firewall to SMPT and IMAP fired up outlook and hey presto, reading email from a remote outlook client is fine, sending however gives
sendmail[18057]: <some identifying stuff> did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Reading up on this suggests that I should set up a certificate and authenticate using that which I duly did
openssl req -new -x509 -nodes -sha1 -days 365 -key host.key > host.cert
openssl x509 -noout -fingerprint -text < host.cert > host.info
cat host.cert host.key > host.pem
chmod 400 host.pem
I then changed my sendmail.mc to use this
divert(-1)
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)
VERSIONID(`Sendmail Config 2009-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')
define(`confAUTH_OPTIONS', `A p y')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confTLS_SRV_OPTIONS', `')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
define(`confCACERT_PATH',`/usr/share/ssl/certs')
define(`confCACERT',`/usr/share/ssl/certs/host.pem')
define(`confSERVER_CERT',`/usr/share/ssl/certs/host.cert')
define(`confSERVER_KEY',`/usr/share/ssl/certs/host.key')
LOGIN PLAIN')dnl
define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
define(`confLOCAL_MAILER', `cyrusv2')
MAILER(smtp)
MAILER(procmail)
MAILER(local)
MAILER(`cyrusv2')
and added the following to my access file (domain name and company changed to example for this forum)
CERTIssuer:/C=AU/ST=NSW/L=Sydney/O=example+20Pty+20Ltd/CN=example.com.au/emailAddress=postmaster@example.com.au RELAY
recreated my sendmail and access files
m4 < sendmail.mc > /etc/sendmail.cf
make access.db
and restarted sendmail
service sendmail restart
all with no joy, I must be missing something here, any help would really be appreciated. None of what I have done has stopped my mail server working as before, but none of it has affected the relaying problem (or lack of relaying)
Okay, I put the sendmail.cf in the wrong place, it's still not working tho, now I get the following
reject=550 5.7.1 <andrew@example.com.au>... Relaying denied. Proper authentication required.
Thanks All
Last edited by andrewfeberwee; 05-14-2009 at 07:26 AM.
|