sendmail and cyrus-imap - delivery problem

Mario Pavlov freebsd at abv.bg
Mon Mar 23 03:12:56 EDT 2009


Hi,
thanks again to all of you for your time
I've tried all that you suggested
I've tried ckuser_cyrus as Matthew Seaman suggested...it made no difference
then I've tried rtcyrus3 as Andrzej Adam Filip suggested...it didn't work either...and the logging output in maillog stopped...but I still get this e-mail in gmail.com

===========================================================================================================
This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

    boo at yo.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 553 553 5.1.2 <whoever at gmail.com>... Unrecognized host name gmail.com. (state 13).
=========================================================================================================

I'm sure it's all my fault
I'm doing something wrong...or somethings wrong
only I don't know what it is :)

so this is my last yo.com.mc

=========================================================================================================
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3 2008/08/31 18:26:27 gshapiro Exp $')
OSTYPE(freebsd6)                                                                                
DOMAIN(generic)                                                                                 

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

FEATURE(`ckuser_cyrus')dnl

FEATURE(`preserve_local_plus_detail')dnl

DAEMON_OPTIONS(`Name=IPv4, Family=inet')

define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')

TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl

dnl $Id: MC.rtcyrus3,v 1.1 2007/09/18 20:39:10 anfi Exp $
LOCAL_CONFIG
# list of virtual cyrus domains
C{VCyrusDomains} yo.com gl.com
divert(-1)
dnl # socket map socket location serviced by cyrus
dnl define(`SMMAP_SOCKET',`/var/imap/socket/smmapd')dnl
dnl # lmtp socket location serviced by cyrus
dnl define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl
FEATURE(`anfi/vcyrus')dnl
MAILER(local)
MAILER(smtp)
MAILER(`anfi/cyrusv3')dnl
=========================================================================================================

I've added smmap in cyrus services
sendmail is compiled with socketmap

# sendmail -d0.1
Version 8.14.3
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
                NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
                SCANF SOCKETMAP STARTTLS TCPWRAPPERS USERDB XDEBUG

I wanted cyrus logging but I couldn't configure it...
I've added:
local6.debug    /var/log/imapd.log
auth.debug      /var/log/auth.log
to syslog.conf but cyrus doesn't write to these files (privileges are correct)
do I need to do something else to make cyrus log ?

I know I'm hopeless :)
I don't want to waste mroe your time with that stuff, you already helped me a lot
but still...if you feel like digging in that more I'll be grateful

thank you.


 >Mario Pavlov  wrote:
 >
 >> Hi,
 >> thanks for your response
 >> you're right
 >> here's the output:
 >>
 >> # (echo subject: test; echo) | sendmail -v -Am boo at yo.com
 >> pesho at e-soul.org... Connecting to /var/imap/socket/lmtp via cyrusv2...
 >> 220 yo.com Cyrus LMTP v2.3.13 server ready                        
 >>>>> LHLO yo.com
 >> 250-yo.com
 >> 250-8BITMIME
 >> 250-ENHANCEDSTATUSCODES
 >> 250-PIPELINING
 >> 250-SIZE
 >> 250-AUTH EXTERNAL
 >> 250 IGNOREQUOTA
 >>>>> MAIL From: SIZE=15 AUTH=moo at yo.com
 >> 250 2.1.0 ok
 >>>>> RCPT To:
 >>>>> DATA
 >> 550-Mailbox unknown.  Either there is no mailbox associated with this
 >> 550-name or you do not have authorization to see it.
 >> 550 5.1.1 User unknown
 >> 503 5.5.1 No recipients
 >>>>> RSET
 >> 250 2.0.0 ok
 >>
 >> what can I do to make sendmail not strip the domain ?
 >>
 >> thank you.
 >
 >I suggest using RTCyrus3 recipe. It is not the simplest approach but it
 >allows to make sendmail reject messages to non existing cyrus mailboxes
 >in reply to "RCPT TO:" => your sendmail does not send "bounce" messages
 >in reply to messages/spam sent to non exiting mailboxes.
 >
 >RTCyrus3 requires patching cf/m4/proto.m4 and generating new sendmail.cf but
 >no recompilation of sendmail binaries if they are compiled with socket
 >map support.
 >See "compiled with" section produced by the test command below to find
 >out if your sendmail is compiled with socketmap support
 >sendmail -bv root -d0.1 | grep -i socketmap
 >
 >http://open-sendmail.sourceforge.net/rtcyrus3/
 >
 >-- 
 >[pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu
 >I want to buy a husband who, every week when I sit down to watch "St.
 >Elsewhere", won't scream, "Forget it, Blanche... It's time for Hee-Haw!"
 >  -- Berke Breathed, "Bloom County"
 >


More information about the Info-cyrus mailing list