LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2009, 02:43 AM   #1
andrewfeberwee
Member
 
Registered: Feb 2007
Posts: 30

Rep: Reputation: 15
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.
 
Old 05-15-2009, 01:11 AM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Hi,

there are two line in sendmail.mc uncomment them and outlook will work fine:

Code:
TRUST_AUTH_MECH(`EXTERNAL DISGEST.....
and the next line:

Code:
define(`confAUTH_MECHANISMS', `EXTERNAL.......
after that in the sendmail directory rebuild the sendmail and restart it:

Code:
make clean
make all
make restart
in the outlook must need to define the "outgoing server/my outgoing server(SMTP) requires authentication box" for relaying.

It means he needs an account on your linux box to login to authenticate himself for smtp relay.

Laz.
 
  


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
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
Cyrus SASL help littlebill Red Hat 0 10-02-2004 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:54 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