[Dovecot] TECRA-A9 -- devcot LDA/sendmail
FreeBSD 6.3-RELEASE-p3 i386
sendmail -d0.1 Version 8.14.2 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG
dovecot-1.0.7
dovecot-sieve-1.0.2
IMAP-UW was previously used.
ISSUE-1: Unable to get new mail delivered to the Dovecot generated ~/Maildir/folders. The mail continues be delivered to the standard /var/mail/<user-name>. Ofcourse, until I get the aforementioned functioning, I'm unable to experience the Dovecot-sieve.
With focus on the above issue, my dovecot-conf has
mail_location = maildir:~/Maildir mail_location = mbox:~/mail/:INBOX=/var/mail/%u mail_plugin_dir = /usr/local/lib/dovecot/lda mail_plugins = mail_plugins = cmusieve
With the above four (4) lines in the dovecot.conf the mail continues to find its way to /var/mail/user-name. After which I find this -- http://wiki.dovecot.org/LDA/Sendmail which did not work for us. New mail continues to get delivered to /var/mail/user-name.
We find another resource of information to help get this working; http://www.dovecot.org/list/dovecot/2007-April/021448.html -- while it looks promising it opened up a whole new issue (see below) --not to mention it too was not able to deliver our mail to ~/Maildir ... mail continues to get delivered to /var/mail/usr-name.
ISSUE-1a: The following text was generated while trying to resolve issue-1 (above): The short version is after generating another hostname.cf 'plugins' and/or the plugin directory was not found during two (2) attempts of starting and restarting sendmail. On the third attempt the directory and its files were magically found; the plugin directory and its files were always there.
WORKSTATION# make install restart
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/
/usr/share/sendmail/cf/m4/cf.m4
/etc/mail/WORKSTATION.mc > /etc/mail/WORKSTATION.cf
install -m 444 /etc/mail/WORKSTATION.cf /etc/mail/sendmail.cf
install -m 444 /etc/mail/WORKSTATION.submit.cf /etc/mail/submit.cf
Restarting: sendmail sendmail-clientmqueue.
WORKSTATION# Aug 19 03:43:09 WORKSTATION deliver(email): Plugin
mail_plugins not
found from directory /usr/local/lib/dovecot/lda
WORKSTATION# make restart Restarting: sendmail sendmail-clientmqueue. WORKSTATION# Aug 19 03:43:41 WORKSTATION deliver(email): Plugin mail_plugins not found from directory /usr/local/lib/dovecot/lda
WORKSTATION# ll /usr/local/lib/dovecot/lda total 272 lrwxr-xr-x 1 root wheel 22 Nov 30 2007 lib01_acl_plugin.so -> ../lib01_a cl_plugin.so lrwxr-xr-x 1 root wheel 24 Nov 30 2007 lib10_quota_plugin.so -> ../lib10 _quota_plugin.so lrwxr-xr-x 1 root wheel 24 Nov 30 2007 lib11_trash_plugin.so -> ../lib11 _trash_plugin.so lrwxr-xr-x 1 root wheel 26 Nov 30 2007 lib20_convert_plugin.so -> ../lib 20_convert_plugin.so lrwxr-xr-x 1 root wheel 27 Nov 30 2007 lib20_mail_log_plugin.so -> ../li b20_mail_log_plugin.so -rw-r--r-- 1 root wheel 151292 Nov 30 2007 lib90_cmusieve_plugin.a -rwxr-xr-x 1 root wheel 909 Nov 30 2007 lib90_cmusieve_plugin.la -rwxr-xr-x 1 root wheel 123073 Nov 30 2007 lib90_cmusieve_plugin.so
WORKSTATION# make restart Restarting: sendmail sendmail-clientmqueue. WORKSTATION# make install restart install -m 444 /etc/mail/WORKSTATION.cf /etc/mail/sendmail.cf install -m 444 /etc/mail/WORKSTATION.submit.cf /etc/mail/submit.cf Restarting: sendmail sendmail-clientmqueue
ISSUE-2: Next is the converting, and moving, of existing mail from /var/mail/<user-name> (file) to the newly generated ~/Maildir/folders. NOTE: I've seen a few files on or linked to the Dovecot wiki page but, I'm a bit reluctant to try them because of directions/instructions I followed in the past with regards to LDA/sendmail that appears to either be incorrect or the author assumes the reader has prior knowledge (we don't have this knowledge); in addition the article appeared to be Red Hat specific.
We would like to resolve all of the above with some level of authority. We are not programmers and can barely script so please go easy with the jargon/termonology
Apologies for the long wind.
At 04:07 19-08-2008, dovecot@guice.ath.cx wrote:
ISSUE-1: Unable to get new mail delivered to the Dovecot generated ~/Maildir/folders. The mail continues be delivered to the standard /var/mail/<user-name>. Ofcourse, until I get the aforementioned functioning, I'm unable to experience the Dovecot-sieve.
Sendmail is performing a local delivery instead of invoking deliver. Remove the domain names from local-host-names.
Regards, -sm
Re: [Dovecot] TECRA-A9 -- devcot LDA/sendmai
The mail is not delivered to the ~/Maildir; mail continues to get delivered to /var/mail/<user-name>.
First thing first, if you're reading this section/msg of the original thread, please return to the initial/first message. To the author (SM sm@resistor.net) who offered the response about sendmails' local-host-names, how did you arrive at this? What does sendmails local-host-names have to do with local delivery once the MTA accepts the mail <-- perhaps that's a bit off-topic for this thread.
NO disrespect intended to -- SM In any case I had a strong feeling the resolve offered from SM
sm@resistor.net would'nt work and it didn't, but I can say "that I
tried it". With that being said, would someone please return to the
first message in this thread and provide an authoritive resolve to my issues; if
powssible. Thanks On Tue, Aug 19, 2008 at 10:43:14AM -0700, SM wrote: At 04:07 19-08-2008, dovecot@guice.ath.cx wrote: ISSUE-1: Unable to get new mail delivered to the Dovecot generated
~/Maildir/folders. The mail continues be delivered to the standard
/var/mail/<user-name>. Ofcourse, until I get the aforementioned
functioning, I'm unable to experience the Dovecot-sieve. Sendmail is performing a local delivery instead of invoking
deliver. Remove the domain names from local-host-names. Regards,
-sm
At 15:22 19-08-2008, dovecot@guice.ath.cx wrote:
Re: [Dovecot] TECRA-A9 -- devcot LDA/sendmai
The mail is not delivered to the ~/Maildir; mail continues to get delivered to /var/mail/<user-name>.
First thing first, if you're reading this section/msg of the original thread, please return to the initial/first message. To the author (SM sm@resistor.net) who offered the response about sendmails' local-host-names, how did you arrive at this? What does sendmails local-host-names have to do with local delivery once the MTA accepts the mail <-- perhaps that's a bit off-topic for this thread.
The MTA (sendmail) generally accepts the mail and then passes it to the LDA if the recipient domain is listed in local-host-names or is in class {w}. In this case, the LDA used should be Dovecot's deliver. However, it won't work for local delivery, hence the mailertable hack.
You mentioned that mail is being delivered but the steps at http://wiki.dovecot.org/LDA/Sendmail don't work for you. As you have not provided any log extracts, I can only assume that sendmail is calling the LDA defined by local MAILER to deliver mail to the /var/mail/<user-name> mbox even though Dovecot's mail_location is set to maildir:~/Maildir only.
Regards, -sm
On Tue, Aug 19, 2008 at 10:10:54PM -0700, SM wrote:
At 15:22 19-08-2008, dovecot@guice.ath.cx wrote:
Re: [Dovecot] TECRA-A9 -- devcot LDA/sendmai
The mail is not delivered to the ~/Maildir; mail continues to get delivered to /var/mail/<user-name>.
First thing first, if you're reading this section/msg of the original thread, please return to the initial/first message. To the author (SM sm@resistor.net) who offered the response about sendmails' local-host-names, how did you arrive at this? What does sendmails local-host-names have to do with local delivery once the MTA accepts the mail <-- perhaps that's a bit off-topic for this thread.
The MTA (sendmail) generally accepts the mail and then passes it to the LDA if the recipient domain is listed in local-host-names or is in class {w}. In this case, the LDA used should be Dovecot's deliver. However, it won't work for local delivery, hence the mailertable hack.
You mentioned that mail is being delivered but the steps at http://wiki.dovecot.org/LDA/Sendmail don't work for you. As you have not provided any log extracts, I can only assume that sendmail is calling the LDA defined by local MAILER to deliver mail to the /var/mail/<user-name> mbox even though Dovecot's mail_location is set to maildir:~/Maildir only.
Regards, -sm
You are correct. Allow me to provide just a little more detail. We're assuming that dovecot.confs' 'Mail_location:' has nothing to do with the MTA handing off to the 'deliver' LDA. With that being said, no matter what the dovecot.confs' 'mail_location:' is set to, and with:
/usr/share/sendmail/cf/mailer/dovecot.m4 containing the following:
Mdovecot, P=/usr/local/libexec/dovecot/deliver, F=DFMPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, T=DNS/RFC822/X-Unix, A=deliver -d $u
in addition to hostname.mc containing: MAILER(local) MAILER(smtp) MAILER(dovecot)
--or containing --
MAILER(smtp) MAILER(dovecot)
the local mailer continues to handle and send the mail to /var/mail/<user-name>. Yes we did create another hostname.cf. :=)
Here is a sample from our /var/log/maillog --
Aug 20 04:56:15 WORKSTATION sm-mta[3415]: m7K8uEAY003414:+to=dovecot@guice.ath.cx, delay=00:00:01, xdelay=00:00:01, mailer=local,+pri=34104, relay=local, dsn=2.0.0, stat=Sent Aug 20 05:02:02 WORKSTATION sm-mta[3441]: m7K921Ba003441:+from=dovecot-bounces+dovecot=guice.ath.cx@dovecot.org, size=8661, class=0,+nrcpts=1, msgid=48ABEB0A.9020102@bwin.org, proto=ESMTP, daemon=IPv4,+relay=dovecot.org [82.118.211.50] Aug 20 05:02:02 WORKSTATION sm-mta[3442]: m7K921Ba003441:+to=dovecot@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local,pri=38892, relay=local, dsn=2.0.0, stat=Sent
At 05:48 20-08-2008, dovecot@guice.ath.cx wrote:
You are correct. Allow me to provide just a little more detail. We're assuming that dovecot.confs' 'Mail_location:' has nothing to do with the MTA handing off to the 'deliver' LDA. With that being said, no matter what the dovecot.confs' 'mail_location:' is set to, and with:
There are two stages:
MTA handing off the message to the LDA
'deliver' LDA taking the message and delivering it to the appropriate mailbox.
The first stage is not determined by the dovecot.conf mail_location setting.
the local mailer continues to handle and send the mail to /var/mail/<user-name>. Yes we did create another hostname.cf. :=)
Add the following line to your sendmail .mc file:
define(confDONT_PROBE_INTERFACES',
True')dnl
and generate a new configuration. Then restart sendmail and test.
Regards, -sm
On Wed, Aug 20, 2008 at 08:45:54AM -0700, SM wrote:
At 05:48 20-08-2008, dovecot@guice.ath.cx wrote:
You are correct. Allow me to provide just a little more detail. We're assuming that dovecot.confs' 'Mail_location:' has nothing to do with the MTA handing off to the 'deliver' LDA. With that being said, no matter what the dovecot.confs' 'mail_location:' is set to, and with:
There are two stages:
MTA handing off the message to the LDA
'deliver' LDA taking the message and delivering it to the appropriate mailbox.
The first stage is not determined by the dovecot.conf mail_location setting.
the local mailer continues to handle and send the mail to /var/mail/<user-name>. Yes we did create another hostname.cf. :=)
Add the following line to your sendmail .mc file:
define(
confDONT_PROBE_INTERFACES',
True')dnland generate a new configuration. Then restart sendmail and test.
Regards, -sm
Per your suggestion:
hostname.mc contains:
define(confDONT_PROBE_INTERFACES',
True')dnl
dnl MAILER(local) MAILER(smtp) MAILER(dovecot) dnl MAILER(procmail)dnl
restarting services
# make cf && make install restart && sleep 10 &&
/usr/local/etc/rc.d/dovecot restart
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/
/usr/share/sendmail/cf/m4/cf.m4 /etc/mail/WORKSTATION.mc >
/etc/mail/WORKSTATION.cf
install -m 444 /etc/mail/WORKSTATION.cf /etc/mail/sendmail.cf
install -m 444 /etc/mail/WORKSTATION.submit.cf /etc/mail/submit.cf
Restarting: sendmail sendmail-clientmqueue.
Stopping dovecot.
Waiting for PIDS: 5008.
Starting dovecot.
tail -f /var/log/maillog
Aug 20 14:06:06 WORKSTATION sm-mta[5017]: m7KI66XM005017: from=bl2245@gmail.com, size=1770, class=0, nrcpts=1, msgid=11f5b03c0808201206o6357fb8ancd95f3798396dc45@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.232] Aug 20 14:06:07 WORKSTATION sm-mta[5018]: m7KI66XM005017: to=305pm@guice.ath.cx, delay=00:00:01, xdelay=00:00:00, mailer=local, pri=32013, relay=local, dsn=2.0.0, stat=Sent
Well you can see 'Mailer(local)' is still in the loop (above)
Below, just for giggles I checked the ~/Maildir; nothing there. the test mail for the above is no doubt in /var/log/maillog.
Aug 20 14:06:56 WORKSTATION dovecot: imap-login: Login: user=<email>, method=PLAIN, rip=192.168.1.112, lip=192.168.1.112, TLS Aug 20 14:06:56 WORKSTATION dovecot: IMAP(email): Effective uid=1006, gid=1006, home=/home/email Aug 20 14:06:56 WORKSTATION dovecot: IMAP(email): maildir: data=/home/email/Maildir Aug 20 14:06:56 WORKSTATION dovecot: IMAP(email): maildir: root=/home/email/Maildir, index=/home/email/Maildir, control=, inbox=
END.
On Wed, Aug 20, 2008 at 02:33:13PM -0700, SM wrote:
At 11:26 20-08-2008, dovecot@guice.ath.cx wrote:
Well you can see 'Mailer(local)' is still in the loop (above)
That's the problem. What's the output of:
echo '$=w' | /usr/sbin/sendmail -bt
Regards, -sm
WORKSTATION# echo '$=w' | /usr/sbin/sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address>
[IPv6:::1] [72.225.169.69] [IPv6:fe80::1] [192.168.1.112] [WORKSTATION.ath.cx] guice.ath.cx localhost WORKSTATION.ath.cx WORKSTATION [127.0.0.1] [WORKSTATION] localhost.my.domain WORKSTATION.guice.ath.cx [localhost.my.domain] WORKSTATION#
At 14:45 20-08-2008, dovecot@guice.ath.cx wrote:
WORKSTATION# echo '$=w' | /usr/sbin/sendmail -bt
[snip]
guice.ath.cx
Your domain is listed as local. It should not be there if you are using the /etc/mail/sendmail.cf file you generated. grep that file for DontProbeInterfaces.
Regards, -sm
On Wed, Aug 20, 2008 at 03:22:34PM -0700, SM wrote:
At 14:45 20-08-2008, dovecot@guice.ath.cx wrote:
WORKSTATION# echo '$=w' | /usr/sbin/sendmail -bt
[snip]
guice.ath.cx
Your domain is listed as local. It should not be there if you are using the /etc/mail/sendmail.cf file you generated. grep that file for DontProbeInterfaces.
In a prviooous thread you suggested that we use
define(confDONT_PROBE_INTERFACES',
True')dnl. When that line didn't
produce any positive results we removed it. Just before generating
this reply we ran a few more test after removing the only entry
"guice.ath.cx" from 'local-host-names'.
This is a clean install of FreeBSD and packages. No *configuration* files were merged in any way; /root, /usr/home/* and /var/mail/* were restored from a previous install.
It is going to be very interesting to see what is causing this issue.
#
# Sendmail continues to use 'Mailer(local)'
# local-host-names is an empty file
# We have tried both using and removing the following line from
'hostname,mc'
# define(confDONT_PROBE_INTERFACES',
True')dnl
## These are the active lines in my 'hostname.mc' divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.4 2007/11/22 16:20:01 gs 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') dnl define(
confCW_FILE', -o /etc/mail/sendmail.cw') define(
confCW_FILE', `-o /etc/mail/local-host-names')
DAEMON_OPTIONS(Name=IPv4, Family=inet') DAEMON_OPTIONS(
Name=IPv6, Family=inet6, Modifiers=O')
define(confBIND_OPTS',
WorkAroundBrokenAAAA')
define(confNO_RCPT_ACTION',
add-to-undisclosed')
define(confPRIVACY_FLAGS',
authwarnings,noexpn,novrfy')
define(confDONT_PROBE_INTERFACES',
True')dnl
dnl MAILER(local)
MAILER(smtp)
MAILER(dovecot)
dnl MAILER(procmail)dnl
dnl set SASL options
TRUST_AUTH_MECH(GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl define(
confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
The following is the output with the above 'hostname.mc' in effect and 'Mailer(local) is still the LDA. :=\
WORKSTATION# echo '$=w' | /usr/sbin/sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address>
[72.225.169.69] guice.ath.cx localhost WORKSTATION.guice.ath.cx
## Here are the log files after sending test emails to the devcot machine.
Aug 20 20:04:05 WORKSTATION sm-mta[5921]: m7L045E7005921: from=bl2245@gmail.com, size=1765, class=0, nrcpts=1, msgid=11f5b03c0808201704p168277b8hd4598337ec30054e@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.239] Aug 20 20:04:05 WORKSTATION sm-mta[5922]: m7L045E7005921: to=804pm@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32008, relay=local, dsn=2.0.0, stat=Sent
Aug 20 20:10:55 WORKSTATION sm-mta[6042]: m7L0Atjo006042: from=bl2245@gmail.com, size=1763, class=0, nrcpts=1, msgid=11f5b03c0808201711n5b124a7j5a1933d9a4d80a59@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.235] Aug 20 20:10:55 WORKSTATION sm-mta[6043]: m7L0Atjo006042: to=810pm@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32006, relay=local, dsn=2.0.0, stat=Sent
At 18:17 20-08-2008, dovecot@guice.ath.cx wrote:
In a prviooous thread you suggested that we use define(
confDONT_PROBE_INTERFACES',
True')dnl. When that line didn't produce any positive results we removed it. Just before generating this reply we ran a few more test after removing the only entry "guice.ath.cx" from 'local-host-names'.
In my previous messages, I mentioned the reason for the issue. I assumed that you were following the steps and the results you produced were based on that. I already mentioned that the domain should not be listed in local-host-names if you are using the instructions at http://wiki.dovecot.org/LDA/Sendmail
This is a clean install of FreeBSD and packages. No *configuration* files were merged in any way; /root, /usr/home/* and /var/mail/* were restored from a previous install.
It is going to be very interesting to see what is causing this issue.
# # Sendmail continues to use 'Mailer(local)' # local-host-names is an empty file # We have tried both using and removing the following line from 'hostname,mc' # define(
confDONT_PROBE_INTERFACES',
True')dnl## These are the active lines in my 'hostname.mc' divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.4 2007/11/22 16:20:01 gs 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') dnl define(
confCW_FILE',-o /etc/mail/sendmail.cw') define(
confCW_FILE', `-o /etc/mail/local-host-names')DAEMON_OPTIONS(
Name=IPv4, Family=inet') DAEMON_OPTIONS(
Name=IPv6, Family=inet6, Modifiers=O')define(
confBIND_OPTS',
WorkAroundBrokenAAAA') define(confNO_RCPT_ACTION',
add-to-undisclosed') define(confPRIVACY_FLAGS',
authwarnings,noexpn,novrfy')define(
confDONT_PROBE_INTERFACES',
True')dnl dnl MAILER(local) MAILER(smtp) MAILER(dovecot) dnl MAILER(procmail)dnldnl set SASL options TRUST_AUTH_MECH(
GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl define(
confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
The following is the output with the above 'hostname.mc' in effect and 'Mailer(local) is still the LDA. :=\
WORKSTATION# echo '$=w' | /usr/sbin/sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address>
[72.225.169.69] guice.ath.cx localhost WORKSTATION.guice.ath.cx
## Here are the log files after sending test emails to the devcot machine.
Aug 20 20:04:05 WORKSTATION sm-mta[5921]: m7L045E7005921: from=bl2245@gmail.com, size=1765, class=0, nrcpts=1, msgid=11f5b03c0808201704p168277b8hd4598337ec30054e@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.239] Aug 20 20:04:05 WORKSTATION sm-mta[5922]: m7L045E7005921: to=804pm@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32008, relay=local, dsn=2.0.0, stat=Sent
If guice.ath.cx is listed in /etc/hosts, remove it from there and restart sendmail to test.
Regards, -sm
On Wed, Aug 20, 2008 at 10:01:21PM -0700, SM wrote:
At 18:17 20-08-2008, dovecot@guice.ath.cx wrote:
In a prviooous thread you suggested that we use define(
confDONT_PROBE_INTERFACES',
True')dnl. When that line didn't produce any positive results we removed it. Just before generating this reply we ran a few more test after removing the only entry "guice.ath.cx" from 'local-host-names'.In my previous messages, I mentioned the reason for the issue. I assumed that you were following the steps and the results you produced were based on that. I already mentioned that the domain should not be listed in local-host-names if you are using the instructions at http://wiki.dovecot.org/LDA/Sendmail
This is a clean install of FreeBSD and packages. No *configuration* files were merged in any way; /root, /usr/home/* and /var/mail/* were restored from a previous install.
It is going to be very interesting to see what is causing this issue.
# # Sendmail continues to use 'Mailer(local)' # local-host-names is an empty file # We have tried both using and removing the following line from 'hostname,mc' # define(
confDONT_PROBE_INTERFACES',
True')dnl## These are the active lines in my 'hostname.mc' divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.4 2007/11/22 16:20:01 gs 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') dnl define(
confCW_FILE',-o /etc/mail/sendmail.cw') define(
confCW_FILE', `-o /etc/mail/local-host-names')DAEMON_OPTIONS(
Name=IPv4, Family=inet') DAEMON_OPTIONS(
Name=IPv6, Family=inet6, Modifiers=O')define(
confBIND_OPTS',
WorkAroundBrokenAAAA') define(confNO_RCPT_ACTION',
add-to-undisclosed') define(confPRIVACY_FLAGS',
authwarnings,noexpn,novrfy')define(
confDONT_PROBE_INTERFACES',
True')dnl dnl MAILER(local) MAILER(smtp) MAILER(dovecot) dnl MAILER(procmail)dnldnl set SASL options TRUST_AUTH_MECH(
GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl define(
confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
The following is the output with the above 'hostname.mc' in effect and 'Mailer(local) is still the LDA. :=\
WORKSTATION# echo '$=w' | /usr/sbin/sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address>
[72.225.169.69] guice.ath.cx localhost WORKSTATION.guice.ath.cx
## Here are the log files after sending test emails to the devcot machine.
Aug 20 20:04:05 WORKSTATION sm-mta[5921]: m7L045E7005921: from=bl2245@gmail.com, size=1765, class=0, nrcpts=1, msgid=11f5b03c0808201704p168277b8hd4598337ec30054e@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.239] Aug 20 20:04:05 WORKSTATION sm-mta[5922]: m7L045E7005921: to=804pm@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32008, relay=local, dsn=2.0.0, stat=Sent
I'm replying to two (2) messages herein ...
In response to 'Steffen Kaiser': I haven't found in the thread, why you don't use Deliver as local LDA?
MY_Reply 1): we're following a dovecot.org article; trying to figure out if its something we are doing incorrectly, or if there is an installation, or some other such issue.
'Steffen Kaiser'-- BTW: You've defined local_lmtp, why? My_Reply 1a): It, local_lmtp, was already in the default file and things were working.
----- In reply to 'SM resistor.net -----
If guice.ath.cx is listed in /etc/hosts, remove it from there and restart sendmail to test.
============================
WORKSTATION# cat /etc/mail/local-host-names
WORKSTATION# cat /etc/hosts | grep -i workstation WORKSTATION# cat /etc/hosts | grep -i guice WORKSTATION# cat /etc/hosts | grep -i ath WORKSTATION# cat /etc/hosts | grep -i cx ----- Nothing that resembles 'workstation', 'guice', 'ath', 'cx'
hostname.mc contains
divert(-1)
divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.4 2007/11/22 16:20:01 gs 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')
define(confCW_FILE',
-o /etc/mail/local-host-names')
DAEMON_OPTIONS(Name=IPv4, Family=inet') DAEMON_OPTIONS(
Name=IPv6, Family=inet6, Modifiers=O')
define(confBIND_OPTS',
WorkAroundBrokenAAAA')
define(confNO_RCPT_ACTION',
add-to-undisclosed')
define(confPRIVACY_FLAGS',
authwarnings,noexpn,novrfy')
MAILER(dovecot) MAILER(local) MAILER(smtp) MAILER(procmail)dnl
TRUST_AUTH_MECH(GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl define(
confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
---------Sending a test email to the dovecot machine ...
Aug 20 20:04:05 WORKSTATION sm-mta[5921]: m7L045E7005921: from=bl2245@gmail.com, size=1765, class=0, nrcpts=1, msgid=11f5b03c0808201704p168277b8hd4598337ec30054e@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.239] Aug 20 20:04:05 WORKSTATION sm-mta[5922]: m7L045E7005921: to=804pm@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32008, relay=local, dsn=2.0.0, stat=Sent
Aug 20 20:10:55 WORKSTATION sm-mta[6042]: m7L0Atjo006042: from=bl2245@gmail.com, size=1763, class=0, nrcpts=1, msgid=11f5b03c0808201711n5b124a7j5a1933d9a4d80a59@mail.gmail.com, proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com [209.85.198.235] Aug 20 20:10:55 WORKSTATION sm-mta[6043]: m7L0Atjo006042: to=810pm@guice.ath.cx, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32006, relay=local, dsn=2.0.0, stat=Sent
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 21 Aug 2008, dovecot@guice.ath.cx wrote:
Do you have some Cw lines in sendmail.cf? Maybe OSTYPE(freebsd) adds them. For instance, there is always a Cwlocalhost line in my .cf file.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIrXKUVJMDrex4hCIRAkYcAJ47Rm94c60WywISEsN2kllCt/ZwVACeLk36 25XwIRP8i4LKGcCPGl/4rLA= =u4C8 -----END PGP SIGNATURE-----
On Thu, Aug 21, 2008 at 03:50:10PM +0200, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 21 Aug 2008, dovecot@guice.ath.cx wrote:
Do you have some Cw lines in sendmail.cf? Maybe OSTYPE(freebsd) adds them. For instance, there is always a Cwlocalhost line in my .cf file.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIrXKUVJMDrex4hCIRAkYcAJ47Rm94c60WywISEsN2kllCt/ZwVACeLk36 25XwIRP8i4LKGcCPGl/4rLA= =u4C8 -----END PGP SIGNATURE-----
Mr. Kaiser,
I do appreciate your efforts and replies however, It appears your not reading the entire message thread. I posted the active lines in my hostname.mc. With that being said, your question of:
"> Do you have some Cw lines in sendmail.cf? Maybe OSTYPE(freebsd) "> adds them. "> For instance, there is always a Cwlocalhost line in my .cf file.
Has been answered.
Please continue to help us find out why the following:
Mdovecot, P=/usr/local/libexec/dovecot/deliver, F=DFMPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, T=DNS/RFC822/X-Unix, A=deliver -d $u
If you're using sendmail.mc then put the lines above into a new file /usr/share/sendmail/cf/mailer/dovecot.m4 and put MAILER(dovecot) into your sendmail.mc
is not working for us.
The above can be found on: http://wiki.dovecot.org/LDA/Sendmail
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 20 Aug 2008, dovecot@guice.ath.cx wrote:
I haven't found in the thread, why you don't use Deliver as local LDA?
I use:
dnl -f $g -- sender
dnl -d $u -- destination user account name
dnl -m $h -- mailbox to deliver to (+detail part of address)
dnl -n -- don't create new mailbox
FEATURE(local_procmail',
/etc/mail/smrsh/dovecot-deliver',
`/etc/mail/smrsh/dovecot-deliver -f $g -d $u -m $h')dnl
BTW: You've defined local_lmtp, why?
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIrR3JVJMDrex4hCIRAopSAKCleU2mlV4+UhiB6yPzNZYC1PlIBwCgknRO DE1CTYoizIChUUwJzURirtQ= =/iGw -----END PGP SIGNATURE-----
participants (3)
-
dovecot@guice.ath.cx
-
SM
-
Steffen Kaiser