$50 to anyone who can help me fix this problem (serious)

Robert Scussel rscuss at omniti.com
Mon Nov 24 09:28:45 EST 2003


Just out of curiosity, try changing lmtp to listen on a network socket 
(temporarily), then you don't have to worry about the permissions of the 
lmtp socket.

Is it possible to turn up the debugging of sendmail and show the output? 
   ( For example, run the daemon in the foreground -- I don't know 
sendmail too well, but with exim it is possible ) It would be helpful to 
see the difference between a successful and an unsuccessful delivery.


HTH,
B


Bruce A. Bergman wrote:
> Gurus --
> 
> I'm at my wits end here, and have been fighting this thing for half a year
> (off and on) with no success.  So, US$50 will be sent to the first person
> who helps me figure out what's wrong with my config such that things work
> correctly.  I am serious -- I will definitely pay this bounty to the first
> person who can figure out what the heck I have (or have not) done.
> 
> Disclaimer: I am a competent Linux admin, years of experience.  Can grok
> sendmail to a fair extent.  RedHat 7.1 system otherwise working perfectly.
> 
> Synopsis:   Mail to me from anywhere else in the net.world works fine.
> Cyrus delivers it to me as expected.  However, if I try sending to one of my
> client domain addresses, and my E-mail address is included in any config
> file, the result is that the message is never delivered.  It ends up (and
> stays) in the mqueue forever.  I have TONS of disk space free, and I do not
> use quotas, btw.
> 
> I will include what I think you gurus might ask for, but let me know if you
> need anything else not included here:
> 
> Here's what rpm -qa shows:
> cyrus-imapd-2.0.9-3
> cyrus-sasl-devel-1.5.24-22.7
> cyrus-sasl-1.5.24-22.7
> 
> My /etc/cyrus.conf:
> # standard standalone server implementation
> 
> START {
>   # do not delete these entries!
>   mboxlist      cmd="ctl_mboxlist -r"
>   deliver       cmd="ctl_deliver -r"
> }
> 
> # UNIX sockets start with a slash and are put into /var/imap/socket
> SERVICES {
>   # add or remove based on preferences
>   imap          cmd="/usr/cyrus/bin/imapd" listen="imap" prefork=0
>   imaps         cmd="/usr/cyrus/bin/imapd -s" listen="imaps" prefork=0
>   pop3          cmd="/usr/cyrus/bin/pop3d" listen="pop3" prefork=0
>   pop3s         cmd="/usr/cyrus/bin/pop3d -s" listen="pop3s" prefork=0
>   sieve         cmd="/usr/cyrus/bin/timsieved" listen="sieve" prefork=0
> 
> # at least one LMTP listener is required for proper delivery
> # lmtp          cmd="lmtpd" listen="lmtp" prefork=0
>   lmtpunix      cmd="/usr/cyrus/bin/lmtpd" listen="/var/imap/socket/lmtp"
> prefork=0
> }
> 
> EVENTS {
>   # this is required
>   checkpoint    cmd="ctl_mboxlist -c" period=30
> 
>   # this is only necessary if using duplicate delivery suppression
>   #delprune     cmd="ctl_deliver -E 3" period=1440
> }
> 
> A directory of  /var/imap:
> drwxr-x---    2 cyrus    mail         4096 Nov 21 19:05 db
> drwxr-x---    3 cyrus    mail         4096 Jun 17 11:25 deliverdb
> drwxr-x---    2 cyrus    mail         4096 May 12  2003 log
> -rwxr-x---    1 cyrus    mail            0 Mar  2  2001 mailboxes
> -rw-------    1 cyrus    root        16384 Nov  9 12:09 mailboxes.db
> drwxr-x---    2 cyrus    mail         4096 Dec  1  2002 msg
> drwxr-x---    2 cyrus    mail         8192 Nov 21 19:29 proc
> drwxr-x---   28 cyrus    mail         4096 Sep 19  2002 quota
> drwxr-xr-x    2 cyrus    mail         4096 Nov 21 19:05 socket
> drwxr-x---   28 cyrus    mail         4096 Sep 19  2002 user
> 
> A directory of /var/imap/socket:
> srwxrwxrwx    1 root     root            0 Nov 21 19:05 lmtp
> srwxrwxrwx    1 root     root            0 May 15  2003 xyz
> 
> From /etc/services:
> lmtp            2003/tcp                        # lmtpd for cyrus
> 
> My sendmail.mc file:
> dnl This is the macro config file used to generate the /etc/sendmail.cf
> dnl file. If you modify this file you will have to regenerate the
> dnl /etc/sendmail.cf by running this macro config through the m4
> dnl preprocessor:
> dnl
> dnl        m4 /etc/sendmail.mc > /etc/sendmail.cf
> dnl
> dnl You will need to have the sendmail-cf package installed for this to
> dnl work.
> include(`/usr/share/sendmail-cf/m4/cf.m4')
> define(`confDEF_USER_ID',``8:12'')
> OSTYPE(`linux')
> undefine(`UUCP_RELAY')
> undefine(`BITNET_RELAY')
> define(`confAUTO_REBUILD')
> define(`confTO_CONNECT', `1m')
> define(`confTRY_NULL_MX_LIST',true)
> define(`confDONT_PROBE_INTERFACES',true)
> define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
> FEATURE(`smrsh',`/usr/sbin/smrsh')
> FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
> FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
> FEATURE(redirect)
> FEATURE(always_add_domain)
> FEATURE(use_cw_file)
> FEATURE(local_procmail)
> MAILER(smtp)
> MAILER(procmail)
> MAILER(local)
> MAILER(`cyrus')
> FEATURE(`access_db')
> dnl FEATURE(relay_hosts_only)
> FEATURE(`blacklist_recipients')
> dnl We strongly recommend to comment this one out if you want to protect
> dnl yourself from spam. However, the laptop and users on computers that do
> dnl not hav 24x7 DNS do need this.
> dnl FEATURE(`accept_unresolvable_domains')
> dnl FEATURE(`relay_based_on_MX')
> 
> My domain is fatcity.com, and I have many customers (in other domains I
> host) that I support.
> 
> In /etc/aliases, bruceb at fatcity.com is directed to bruceb at CYRUS.
> /etc/mail/mailertable has the following in it:
> CYRUS           cyrus:INBOX
> 
> I have a line in /etc/mail/virtusertable such as (somesite.com is one of my
> customer's domains which I administer):
> testing at somesite.com                testing-alias
> 
> In /etc/aliases, you'll find:
> testing-alias:
> bruceb at CYRUS,user1 at somesite.com,user2 at somesite.com
> 
> (BTW, I've tried 'bruceb', 'smtp:bruceb at CYRUS', 'bruceb at fatcity.com' and
> others in this alias with no difference in end-result behavior...)
> 
> When I send mail from any other account (something on yahoo, for example),
> the mail is delivered to everyone perfectly, including me.  Whoo hoo! :-)
> 
> When I send mail from my account (bruceb at fatcity.com), it delivers everyone
> fine EXCEPT me.  Instead, what I get is the following in mqueue:
>                 /var/spool/mqueue (1 request)
> ----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient---------
> ---
> hAM3n5720012        7 Fri Nov 21 19:49 <bruceb at fatcity.com>
>                  (Deferred: cyrus mailer (/usr/cyrus/bin/deliver) exited
> with )
>                                        bruceb at CYRUS
> 
> Looking at the qFile, I see:
> MDeferred: cyrus mailer (/usr/cyrus/bin/deliver) exited with EX_TEMPFAIL
> 
> Flushing the mqueue gets:
> Running /var/spool/mqueue/hAM3n5720012 (sequence 1 of 1)
> bruceb at CYRUS... aliased to bruceb at CYRUS
> bruceb at CYRUS... Connecting to INBOX via cyrus...
> bruceb at CYRUS... Deferred: cyrus mailer (/usr/cyrus/bin/deliver) exited with
> EX_TEMPFAIL
> 
> In /var/log/messages, I see:
> Nov 21 19:51:03 mh2 deliver[20072]: connect(/var/imap/socket/lmtp) failed:
> Permission denied
> 
> So that's where I'm stuck.  Any clues??  Again, the disk isn't full, and I
> don't use quotas.  Using "-q" has not made a difference.
> 
> I hope $50 is still worth something these days! :-)
> 
> thanks,
> bruce
> 
> 
> 
> 
> 
> 


-- 
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912  5FCC 92D8 1EA1 BAF7 0959





More information about the Info-cyrus mailing list