Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

dbmail+sendmail, LDA dbmail-lmtp not working!

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


mamont at isp

Dec 27, 2010, 4:05 AM

Post #1 of 3 (397 views)
Permalink
dbmail+sendmail, LDA dbmail-lmtp not working!

I install dbmail + sendmail according to
http://dbmail.org/dokuwiki/doku.php/sendmail_howto
use dbmail-lmtp

Users from LDAP, and:
$ id test
id = 10585 (test) gid = 10000 groups = 10000
ok!

FreeBSD 8.0-RELEASE

But as a result of receiving mail locally (not through dbmail-lmtp), here is
my maillog:
Dec 27 16:35:21 hall sm-mta[3274]: oBRAZLMo003273: to=<test [at] AAAA>,
ctladdr=<root [at] AAAA> (1008/1008), delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=30684, relay=local, dsn=2.0.0, stat=Sent

freebsd.mc:
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.1.2.1 2009/10/25
01:10:29 kensmith Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
MASQUERADE_AS(`AAAA.ru')dnl

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

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

MAILER(local)
MAILER(smtp)
MAILER(`dbmail-lmtp')dnl
# EOF freebsd.mc

If I remove the flag "5"(DBMAIL_MAILER_FLAGS) from bmail-lmtp.m4 then get a
letter in dbmail, but the system user (Root and others) messages are not
delivered locally, it is not permissible.

Dec 27 17:05:08 hall sm-mta[11069]: oBRB5713011067: to=<test [at] AAAA>,
delay=00:00:01, xdelay=00:00:01, mailer=dbmail-lmtp, pri=30418,
relay=localhost.my.domain. [127.0.0.1], dsn=2.0.0, stat=Sent

As where I have made not correctly?

--
View this message in context: http://old.nabble.com/dbmail%2Bsendmail%2C-LDA-dbmail-lmtp-not-working%21-tp30538656p30538656.html
Sent from the dbmail users mailing list archive at Nabble.com.

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Dec 27, 2010, 5:21 AM

Post #2 of 3 (395 views)
Permalink
Re: dbmail+sendmail, LDA dbmail-lmtp not working! [In reply to]

Andrey,

I haven't used sendmail in over ten years, but I'll give it a shot.


On 12/27/2010 01:05 PM, Andrey W. wrote:
>
> I install dbmail + sendmail according to
> http://dbmail.org/dokuwiki/doku.php/sendmail_howto
> use dbmail-lmtp
>
> Users from LDAP, and:
> $ id test
> id = 10585 (test) gid = 10000 groups = 10000
> ok!

So posix users are setup in ldap. Great.

>
> FreeBSD 8.0-RELEASE
>
> But as a result of receiving mail locally (not through dbmail-lmtp), here is
> my maillog:
> Dec 27 16:35:21 hall sm-mta[3274]: oBRAZLMo003273: to=<test [at] AAAA>,
> ctladdr=<root [at] AAAA> (1008/1008), delay=00:00:00, xdelay=00:00:00,
> mailer=local, pri=30684, relay=local, dsn=2.0.0, stat=Sent

mmm

> If I remove the flag "5"(DBMAIL_MAILER_FLAGS) from bmail-lmtp.m4 then get a
> letter in dbmail, but the system user (Root and others) messages are not
> delivered locally, it is not permissible.

DBMail is agnostic when it comes to local or non-local users. There is
no such thing in dbmail. The only thing that counts is whether dbmail
'knows' about a user and/or address or not. In your case the only part
that matters from dbmail perspective is the LDAP stanza in dbmail.conf.

From the perspective of the MTA (like sendmail) the mailertables are
key. They should talk to the LDAP store directly. Does sendmail support
resolving addresses and/or domains through LDAP?


Maybe someone who uses sendmail+ldap+dbmail can offer some more detailed
advise.


>
> Dec 27 17:05:08 hall sm-mta[11069]: oBRB5713011067: to=<test [at] AAAA>,
> delay=00:00:01, xdelay=00:00:01, mailer=dbmail-lmtp, pri=30418,
> relay=localhost.my.domain. [127.0.0.1], dsn=2.0.0, stat=Sent
>
> As where I have made not correctly?
>


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


mamont at isp

Dec 28, 2010, 7:22 AM

Post #3 of 3 (397 views)
Permalink
Re: dbmail+sendmail, LDA dbmail-lmtp not working! [In reply to]

Paul J Stevens wrote:
>
> DBMail is agnostic when it comes to local or non-local users. There is
> no such thing in dbmail. The only thing that counts is whether dbmail
> 'knows' about a user and/or address or not. In your case the only part
> that matters from dbmail perspective is the LDAP stanza in dbmail.conf.
>
> From the perspective of the MTA (like sendmail) the mailertables are
> key. They should talk to the LDAP store directly. Does sendmail support
> resolving addresses and/or domains through LDAP?
>
>

Oh! Thanks.

Here is my decision on this matter:

OSTYPE(freebsd6)
DOMAIN(generic)
MASQUERADE_AS(`mydomain.ru')dnl

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

DAEMON_OPTIONS(`Name=IPv4, Family=inet')dnl
define(`LOCAL_RELAY', `dbmail-lmtp:dbmail.mydomain.ru')dnl
LOCAL_USER_FILE(`/etc/mail/localusers')dnl

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(`dbmail-lmtp')dnl


Then email to test [at] mydomain is get dbmail :)
Flag "5" from dbmail-lmtp.m4 should be removed.
And email alias is test [at] mydomain

There is the list of users which will receive mail locally (/var/mail) in
the file /etc/mail/localusers.


--
View this message in context: http://old.nabble.com/dbmail%2Bsendmail%2C-LDA-dbmail-lmtp-not-working%21-tp30538656p30545394.html
Sent from the dbmail users mailing list archive at Nabble.com.

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.