dovecot-lda configuration problem with sendmail
created new thread from http://www.linuxquestions.org/questi...43#post4820943
My problem is moving from procmail to dovecot-lda for local mail delivery so that I can make use of sieve scripts (mainly to implement out-of-office). operating system is slackware 13.37 32bit I am starting from a working sendmail with startls for authentication, and dovecot imap working for collecting mail, again with starttls. I have used sbopkg for dovecot and dovecot-pigeonhole (sieve) (manually updated the version in the sbo-script to support dovecot 2.1) procedure below Quote:
Code:
VERBOSE=on however, local mail is being delivered by procmail, so the filters are not being applied. Thus my attempt to get sendmail to deliver the local mail via dovecot-lda (/usr/libexec/dovecot/deliver) unfortunately, the mail does not get delivered when I add the line Code:
FEATURE(`local_procmail', `/usr/libexec/dovecot/deliver', `deliver -d $u', `SPhun9')dnl Code:
cd /usr/share/sendmail/cf/cf/ manually running /usr/libexec/dovecot/deliver -d appears to work ok. does anyone have any ideas? for info,output of dovecot -n below Code:
# 2.1.8: /etc/dovecot/dovecot.conf |
Hi Timsoft,
From previous thread we concluded that the sendmail configuration should be OK, but I am hesitate right now whether it is true. Anyway lets examine the dovecot configuration first. Now that I see your dovecot configuration we need to check several things. Do you have these configuration files in /etc/dovecot/conf.d/ ?? Quote:
Right now I can remember that I had problem with this. I installed the dovecot package first and after installation I copied the dovecot example config files as you noted. The dovecot-pigeonhole package was installed later and I didn't expect that it would insert it into the /usr/doc/dovecot-<ver>/example-config instead of /usr/doc/dovecot-pigeonhole<ver>/ directory. So lets check this first - did you copied the config files for sieve? 20-managesieve.conf and 90-sieve.conf. |
I checked and I had the 20-managesieve.conf file, but had missed the 90-seive.conf file
I copied it over and restarted dovecot, but still the local emails disappear into thin air. below is sendmail output incase it helps. Code:
sendmail -d0.1 -bt </dev/null Code:
127.0.0.1 localhost I have noticed a potential dns problem (although it should be using the /etc/hosts file first (/etc/host.conf contains Code:
order hosts, bind in the dns test2.mydomain.co.uk is a cname entry pointing to mail.mydomain.co.uk (which points to our real external ip address) so typing host test2.mydomain.co.uk comes up with Code:
test2.mydomain.co.uk has address xxx.yyy.zzz.qqq (sorry for the extra complication. I saw a message in /var/log/maillog which seemed to show the server (test2.mydomain.co.uk) trying to send the mail for fred@test2.mydomain.co.uk to mail.mydomain.co.uk which made me check the dns.) |
well, I am getting local mail delivered now, although I'm not sure why sendmail should even try to use dns for local delivery. I had some problems with sending mail from our real mail server to the test server but this has been resolved by adding an entry into /etc/mail/mailertable on that server
Quote:
Quote:
this also works the other way (putting a mail.mydomain.co.uk esmtp:[local.ipof.real.mailserver] into mailertable on the test2.mydomain.co.uk machine allows me to send mail from the test2 machine direct to the main mail server without having to send the mail out onto the wan (internet). needless to say, despite the worrying dns lookup for local mail sent by fred@test2.mydomain.co.uk to mary@test2.mydomain.co.uk at least it all seems to be working now, and my simple out of office sieve script works just fine and dovecot-lda delivers mail into the right folders. thanks again for your help hua |
All times are GMT -5. The time now is 03:47 PM. |