Hi,
Still looking for the way to create folders and sub folders..
Today, I am using "mbox", which apparently doesn't work for this ? correct ?
So, I would probably need to use maildir.. ( https://doc.dovecot.org/configuration_manual/mail_location/Maildir/ ]
Today, what I am using is :*mbox, *which is gather all the mailboxes of user 1, user 2 in one folder... like : mbox:/var/spool2/mail/%u
I suppose, that If I am using "mbox" with .. : LAYOUT=fs, I won't get these folders and subfolders ? - Correct ?
Instead of having : "maildir:~/Maildir " which, I suppose got each_user folder into their own home directory_ .. correct ? Can I have : *maildir:/var/spool2/mail/%u *?
( I would prefer to gather all users' mailbox into one folder like /var/spool2/mail/ )
- if so, *mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u* => can become : *maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u*
What do you think ?... before trying and breaking everything :-)... if so, I will be killed
Thanks and regards
On 16/07/2021 11:41 Stephane Magnier <steph.mag220@netcourrier.com> wrote:
Hi, Still looking for the way to create folders and sub folders.. Today, I am using "mbox", which apparently doesn't work for this ? correct ?
mbox has very limited support for folders.
So, I would probably need to use maildir.. ( https://doc.dovecot.org/configuration_manual/mail_location/Maildir/ ] Today, what I am using is :mbox,which is gather all the mailboxes of user 1, user 2 in one folder... like : mbox:/var/spool2/mail/%u
I suppose, that If I am using "mbox" with.. : LAYOUT=fs, I won't get these folders and subfolders ? - Correct ?
Instead of having : "maildir:~/Maildir " which, I suppose got eachuser folder into their own home directory .. correct ? Can I have : maildir:/var/spool2/mail/%u?
yes.
( I would prefer to gather all users' mailbox into one folder like /var/spool2/mail/ ) 3) if so, mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u => can become : maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u
yes. And while you're doing this, you might as well start using lda or lmtp and drop the INBOX parameter. There is no need to keep INBOX in /var/spool/mail/%u unless your users expect direct access?
What do you think ?... before trying and breaking everything :-)... if so, I will be killed
Thanks and regards
Aki
Hi,
So, I tried to change mbox to maildir.. that sounds to be OK for the changes... I can create some folders and subfolders. The problem is that I cannot see any emails arriving into my mailbox
I am using sendmail
I choose the lmtp service for that and I have into Dovecot
Maildir : mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp {
unix_listener /var/spool/mail/dovecot-lmtp {
mode = 0600
user = mail
group = mail
}
inet_listener lmtp {
address = ::1, 127.0.0.1
}
}
into *sendmail.mc*.. I have :
- FEATURE(
local_lmtp',
[IPC]',`FILE /var/spool/mail/dovecot-lmtp')dnl
But if I add : Feature(dovecot) or Feature( local_lmtp) it doesn't compile..
m4:/etc/mail/sendmail.mc:154: cannot open `/usr/share/sendmail-cf/mailer/dovecot.m4': No such file or directory
So, how can explain that any emails coming into /var/spool/mail has to be sent to Dovecot ??
Thanks and regards
Le 16/07/2021 à 10:44, Aki Tuomi a écrit :
On 16/07/2021 11:41 Stephane Magnier <steph.mag220@netcourrier.com> wrote:
Hi, Still looking for the way to create folders and sub folders.. Today, I am using "mbox", which apparently doesn't work for this ? correct ? mbox has very limited support for folders.
So, I would probably need to use maildir.. ( https://doc.dovecot.org/configuration_manual/mail_location/Maildir/ ] Today, what I am using is :mbox,which is gather all the mailboxes of user 1, user 2 in one folder... like : mbox:/var/spool2/mail/%u
I suppose, that If I am using "mbox" with.. : LAYOUT=fs, I won't get these folders and subfolders ? - Correct ?
Instead of having : "maildir:~/Maildir " which, I suppose got eachuser folder into their own home directory .. correct ? Can I have : maildir:/var/spool2/mail/%u? yes.
( I would prefer to gather all users' mailbox into one folder like /var/spool2/mail/ ) 3) if so, mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u => can become : maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u
yes. And while you're doing this, you might as well start using lda or lmtp and drop the INBOX parameter. There is no need to keep INBOX in /var/spool/mail/%u unless your users expect direct access?
What do you think ?... before trying and breaking everything :-)... if so, I will be killed
Thanks and regards
Aki
hi,
Orignially, I have :
*mail_location = mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u* that I change to : *mail_location = maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u *
The verdict..; This part : work fine for : *maildir:/var/spool2/mail/%u:*
but does'n't work out correctly for : *INBOX=/var/spool/mail/%u*
2 possibilities :
I've tried NOT to give access to Mail access on INBOX and I didn't succeed in making it understand that I want my /var/spool/mail/%u to move to the "MailDir" part...
I give access to the INBOX. I leave as it is... but the problem is :Sendmail is using /var/spool/mail%u ( where %u *is a file* ) and*Dovecot who needs to get a folder *and to get %u/tmp ; %u/curl; etc....
So, that way this is incompatible.. what is wrong ??
Please what should I do for this INBOX part ?
Thanks
Le 16/07/2021 à 15:54, Stephane Magnier a écrit :
Hi,
So, I tried to change mbox to maildir.. that sounds to be OK for the changes... I can create some folders and subfolders. The problem is that I cannot see any emails arriving into my mailbox
I am using sendmail
I choose the lmtp service for that and I have into Dovecot
Maildir : mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp { unix_listener /var/spool/mail/dovecot-lmtp { mode = 0600 user = mail group = mail } inet_listener lmtp { address = ::1, 127.0.0.1 } }
into *sendmail.mc*.. I have :
- FEATURE(
local_lmtp',
[IPC]',`FILE /var/spool/mail/dovecot-lmtp')dnlBut if I add : Feature(dovecot) or Feature( local_lmtp) it doesn't compile..
m4:/etc/mail/sendmail.mc:154: cannot open `/usr/share/sendmail-cf/mailer/dovecot.m4': No such file or directory
So, how can explain that any emails coming into /var/spool/mail has to be sent to Dovecot ??
Thanks and regards
Le 16/07/2021 à 10:44, Aki Tuomi a écrit :
On 16/07/2021 11:41 Stephane Magnier<steph.mag220@netcourrier.com> wrote:
Hi, Still looking for the way to create folders and sub folders.. Today, I am using "mbox", which apparently doesn't work for this ? correct ? mbox has very limited support for folders.
So, I would probably need to use maildir.. (https://doc.dovecot.org/configuration_manual/mail_location/Maildir/ ] Today, what I am using is :mbox,which is gather all the mailboxes of user 1, user 2 in one folder... like : mbox:/var/spool2/mail/%u
I suppose, that If I am using "mbox" with.. : LAYOUT=fs, I won't get these folders and subfolders ? - Correct ?
Instead of having : "maildir:~/Maildir " which, I suppose got eachuser folder into their own home directory .. correct ? Can I have : maildir:/var/spool2/mail/%u? yes.
( I would prefer to gather all users' mailbox into one folder like /var/spool2/mail/ ) 3) if so, mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u => can become : maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u
yes. And while you're doing this, you might as well start using lda or lmtp and drop the INBOX parameter. There is no need to keep INBOX in /var/spool/mail/%u unless your users expect direct access?
What do you think ?... before trying and breaking everything :-)... if so, I will be killed
Thanks and regards
Aki
Hi,
I've tried to work with the option NOT to get the INBOX, and to use "lmtp"
Email are stoill blocked into sendmail
Here is my _*sendmail config*_
define(confLOCAL_MAILER',
local_lmtp')dnl
dnl ############################ FIN OPENDKIM ######
dnl ###### boost traitement ############"dnl
FEATURE(access_db',
hash -T<TMPF> -o /etc/mail/access.db')dnl
dnl # define(confCONNECTION_RATE_THROTTLE',2800)dnl FEATURE(local_procmail,
', procmail -t -Y -a $h -d $u')dnl *FEATURE(
local_lmtp')*
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(dovecot)dnl ->maybe totally useless if I declare : MAILER( local )
and my dovecot config
# 2.3.8 (9df20d2db): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.8 (b7b03ba2) # OS: Linux 4.18.0-305.7.1.el8_4.x86_64 x86_64 CentOS Linux release 8.4.2105 xfs # Hostname: mbox1.aztgrp.net auth_mechanisms = plain login auth_username_format = %u default_vsz_limit = 4 G listen = * login_trusted_networks = 192.18.0.0/16 127.0.0.1 ::1 mail_access_groups = dovecot mail_fsync = always *mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs* mail_plugins = " quota" mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave mbox_very_dirty_syncs = yes mbox_write_locks = fcntl mmap_disable = yes namespace inbox { disabled = no ignore_on_failure = no inbox = yes list = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe autoexpunge = 12 weeks special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = no autoexpunge = 12 weeks special_use = \Trash } mailbox virtual/All { auto = no special_use = \All } prefix = subscriptions = yes type = private } passdb { driver = pam } plugin { quota_grace = 10%% quota_max_mail_size = 100M quota_rule = *:storage=10000M quota_rule2 = Trash:Storage=+100M quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = file:~/sieve;active=~/.dovecot.sieve } pop3_uidl_format = %v-%u service auth { unix_listener auth-master { mode = 0666 } } service dict { unix_listener dict { mode = 0600 user = mail } } service imap-login { inet_listener imap { port = 0 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { inet_listener lmtp { address = 127.0.0.1 ::1 port = 24 } unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } } service pop3-login { inet_listener pop3 { address = * port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = mail } user = dovecot } service submission { process_limit = 250 } ssl = required ssl_ca = </etc/mail/ssl/ssl1/STAR_qqq_net.ca-bundle ssl_cert = </etc/mail/ssl/ssl1/STAR_qqq_net.crt ssl_cipher_list = HIGH:!aNULL:!ADH:!DH:!RC4:!MD5:!RSA ssl_dh = # hidden, use -P to show it ssl_key = # hidden, use -P to show it userdb { driver = passwd } verbose_proctitle = yes protocol lmtp { *info_log_path = /var/log/dovecot-lmtp.log* mail_fsync = optimized mail_plugins = autocreate quota acl fts fts_solr zlib mail_log notify sieve postmaster_address = it@iqqq.com } protocol lda { mail_fsync = optimized mail_plugins = " quota sieve quota" } protocol imap { mail_max_userip_connections = 80 mail_plugins = " quota quota imap_quota" ssl_cert = </etc/mail/ssl/ssl1/STAR_qqq_net.crt ssl_key = # hidden, use -P to show it } protocol pop3 { mail_max_userip_connections = 10 mail_plugins = " quota" } protocol submission { mail_max_userip_connections = 10 mail_plugins = " quota" }
And my /var/log/dovecot-lmtp.log Jun 18 21:33:08 imap-login: Info: Login: user=<xxx>, method=PLAIN, rip=109.ss.ss.ss lip=192.18.3.226, mpid=13075, TLS, session=<fb67ZA/FutltvmZQ> Jun 18 21:35:41 imap-login: Info: Login: user=<xxx>, method=PLAIN, rip=109.ss.ss.ss, lip=192.18.3.226, mpid=14036, TLS, session=<o4zQbQ/FAuJtvmZQ> Jun 18 21:38:43 imap(azt000)<14036><o4zQbQ/FAuJtvmZQ>: Info: *Server shutting down.* in=67 out=625 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jun 18 21:38:43 imap(azt000)<13075><fb67ZA/FutltvmZQ>: Info:*Server shutting down*. in=478 out=2094 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Le 16/07/2021 à 21:33, Stephane Magnier a écrit :
hi,
Orignially, I have :
*mail_location = mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u* that I change to : *mail_location = maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u *
The verdict..; This part : work fine for : *maildir:/var/spool2/mail/%u:*
but does'n't work out correctly for : *INBOX=/var/spool/mail/%u*
2 possibilities :
I've tried NOT to give access to Mail access on INBOX and I didn't succeed in making it understand that I want my /var/spool/mail/%u to move to the "MailDir" part...
I give access to the INBOX. I leave as it is... but the problem is :Sendmail is using /var/spool/mail%u ( where %u *is a file* ) and*Dovecot who needs to get a folder *and to get %u/tmp ; %u/curl; etc....
So, that way this is incompatible.. what is wrong ??
Please what should I do for this INBOX part ?
Thanks
Le 16/07/2021 à 15:54, Stephane Magnier a écrit :
Hi,
So, I tried to change mbox to maildir.. that sounds to be OK for the changes... I can create some folders and subfolders. The problem is that I cannot see any emails arriving into my mailbox
I am using sendmail
I choose the lmtp service for that and I have into Dovecot
Maildir : mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp { unix_listener /var/spool/mail/dovecot-lmtp { mode = 0600 user = mail group = mail } inet_listener lmtp { address = ::1, 127.0.0.1 } }
into *sendmail.mc*.. I have :
- FEATURE(
local_lmtp',
[IPC]',`FILE /var/spool/mail/dovecot-lmtp')dnlBut if I add : Feature(dovecot) or Feature( local_lmtp) it doesn't compile..
m4:/etc/mail/sendmail.mc:154: cannot open `/usr/share/sendmail-cf/mailer/dovecot.m4': No such file or directory
So, how can explain that any emails coming into /var/spool/mail has to be sent to Dovecot ??
Thanks and regards
Le 16/07/2021 à 10:44, Aki Tuomi a écrit :
On 16/07/2021 11:41 Stephane Magnier<steph.mag220@netcourrier.com> wrote:
Hi, Still looking for the way to create folders and sub folders.. Today, I am using "mbox", which apparently doesn't work for this ? correct ? mbox has very limited support for folders.
So, I would probably need to use maildir.. (https://doc.dovecot.org/configuration_manual/mail_location/Maildir/ ] Today, what I am using is :mbox,which is gather all the mailboxes of user 1, user 2 in one folder... like : mbox:/var/spool2/mail/%u
I suppose, that If I am using "mbox" with.. : LAYOUT=fs, I won't get these folders and subfolders ? - Correct ?
Instead of having : "maildir:~/Maildir " which, I suppose got eachuser folder into their own home directory .. correct ? Can I have : maildir:/var/spool2/mail/%u? yes.
( I would prefer to gather all users' mailbox into one folder like /var/spool2/mail/ ) 3) if so, mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u => can become : maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u
yes. And while you're doing this, you might as well start using lda or lmtp and drop the INBOX parameter. There is no need to keep INBOX in /var/spool/mail/%u unless your users expect direct access?
What do you think ?... before trying and breaking everything :-)... if so, I will be killed
Thanks and regards
Aki
Am 17.07.2021 um 22:02 schrieb Stephane Magnier:
Email are stoill blocked into sendmail
Here is my _*sendmail config*_
define(
confLOCAL_MAILER',
local_lmtp')dnl dnl ############################ FIN OPENDKIM ###### dnl ###### boost traitement ############"dnl FEATURE(access_db',
hash -T<TMPF> -o /etc/mail/access.db')dnl dnl # define(confCONNECTION_RATE_THROTTLE',2800)dnl FEATURE(local_procmail,
',procmail -t -Y -a $h -d $u')dnl *FEATURE(
local_lmtp')* MAILER(local)dnl MAILER(smtp)dnl MAILER(procmail)dnl MAILER(dovecot)dnl ->maybe totally useless if I declare : MAILER( local )
Hm, this Sendmail config part looks like a mess.
You need a proper MAILER definition which tells Sendmail to use LMTP. And remove those mailers you don't make use of like procmail.
Have a look at the cyrusv2 mailer definition and adopt it for dovecot. https://thr3ads.net/dovecot/2019/12/3145682-How-to-rewrite-local_lmpt-ipc-to...
Alexander
Hi,
After tyding up, here are the files:
*Sendmail :*
define(`DOVECOT_MAILER_ARGS', `TCP $h 24')dnl
MAILER(dovecot)dnl
With: /usr/share/sendmail/mailer/dovecot.m4
Mdovecot, P=[IPC], F=l59DFMPhnu, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, U=mail:mail, * T=DNS/RFC822/SMTP,* A=TCP $h 24 Do you think that T is correct ?
*On Dovecot I have*
Mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp { inet_listener lmtp { address = 127.0.0.1 ::1 port = 24 } unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } }
and I am still not be able to receive emails into the inbox
- on /var/spool3/mail/<user1>, I have
0 drwxrwxrwx 7 azt000 azt000 145 Jul 18 16:26 2019 0 drwxrwxrwx 2 azt000 azt000 72 Jul 18 16:25 cur 8 -rw-rw-rw- 1 azt000 azt000 5252 Jul 18 16:25 dovecot.index.cache 4 -rw-rw-rw- 1 azt000 azt000 3808 Jul 18 16:25 dovecot.index.log 4 -rw-rw-rw- 1 azt000 azt000 1616 Jul 18 16:25 dovecot.list.index 4 -rw-rw-rw- 1 azt000 azt000 3696 Jul 18 16:36 dovecot.list.index.log 4 -rw-rw-rw- 1 azt000 azt000 2040 Jul 18 16:30 dovecot.mailbox.log 4 -rw-rw-rw- 1 azt000 azt000 109 Jul 18 16:25 dovecot-uidlist 4 -rw-rw-rw- 1 azt000 azt000 8 Jul 18 16:27 dovecot-uidvalidity 0 -r--r--r-- 1 azt000 azt000 0 Jul 16 11:02 dovecot-uidvalidity.60f14b29 0 drwxrwxrwx 5 azt000 azt000 87 Jul 16 11:06 Drafts 0 drwxrwxrwx 3 azt000 azt000 22 Jul 18 16:27 INBOX 0 drwxrwxrwx 5 azt000 azt000 87 Jul 16 11:08 Junk 0 drwxrwxrwx 2 azt000 azt000 6 Jul 16 11:02 new 0 drwxrwxrwx 5 azt000 azt000 87 Jul 16 12:26 qdqsd 0 drwxrwxrwx 7 azt000 azt000 112 Jul 16 18:52 qsd 0 drwxrwxrwx 5 azt000 azt000 114 Jul 18 16:16 Sent 4 -rw-rw-rw- 1 azt000 azt000 110 Jul 18 16:30 subscriptions 0 drwxrwxrwx 2 azt000 azt000 6 Jul 18 16:25 tmp 0 drwxrwxrwx 5 azt000 azt000 87 Jul 16 18:53 Trash
That's sounds to me .. OK ??
Thanks and regards
Le 18/07/2021 à 14:47, Alexander Dalloz a écrit :
Am 17.07.2021 um 22:02 schrieb Stephane Magnier:
Email are stoill blocked into sendmail
Here is my _*sendmail config*_
define(
confLOCAL_MAILER',
local_lmtp')dnl dnl ############################ FIN OPENDKIM ###### dnl ###### boost traitement ############"dnl FEATURE(access_db',
hash -T<TMPF> -o /etc/mail/access.db')dnl dnl # define(confCONNECTION_RATE_THROTTLE',2800)dnl FEATURE(local_procmail,
',procmail -t -Y -a $h -d $u')dnl *FEATURE(
local_lmtp')* MAILER(local)dnl MAILER(smtp)dnl MAILER(procmail)dnl MAILER(dovecot)dnl ->maybe totally useless if I declare : MAILER( local )Hm, this Sendmail config part looks like a mess.
You need a proper MAILER definition which tells Sendmail to use LMTP. And remove those mailers you don't make use of like procmail.
Have a look at the cyrusv2 mailer definition and adopt it for dovecot. https://thr3ads.net/dovecot/2019/12/3145682-How-to-rewrite-local_lmpt-ipc-to...
Alexander
Am 18.07.2021 um 16:48 schrieb Stephane Magnier:
Hi,
Please don't mail me personally. I am subscribed to this list and don't want to get mail conversation twice.
And please check to no send HTML formatted mail to mailing lists. Do not top-post either.
After tyding up, here are the files:
*Sendmail :*
define(
DOVECOT_MAILER_ARGS',
TCP $h 24')dnl MAILER(dovecot)dnl
Ok, sure that those entries, especially the MAILER, are located at the end of the sendmail.mc file? Did you afterwards rebuild the sendmail.cf?
With: /usr/share/sendmail/mailer/dovecot.m4
Mdovecot, P=[IPC], F=l59DFMPhnu, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, U=mail:mail, * T=DNS/RFC822/SMTP,* A=TCP $h 24 Do you think that T is correct ?
Yes.
*On Dovecot I have*
Mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp { inet_listener lmtp { address = 127.0.0.1 ::1 port = 24 } unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } }
and I am still not be able to receive emails into the inbox
And what is being logged by Sendmail and by dovecot?
[ ... ]
Alexander
On 2021-07-18 17:48, Alexander Dalloz wrote:
Mdovecot, P=[IPC], F=l59DFMPhnu, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, U=mail:mail, * T=DNS/RFC822/SMTP,* A=TCP $h 24 Do you think that T is correct ?
will $h exspan to 127.0.0.1 ? only or localhost only ?, localhost is dual stacked, so try to avoid dualstack hostname from /etc/hosts make a ipv4.localhost alias in this file, and then use TCP ipv4.localhost 24 in A=
note i use postfix so maybe i am incorrect for the sendmail config with it, but it should stay at 127.0.0.1 for that dovecot server
service lmtp { inet_listener lmtp { address = 127.0.0.1 ::1 port = 24 }
dual stack in loop back interface is overkill
unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } }
and I am still not be able to receive emails into the inbox
And what is being logged by Sendmail and by dovecot?
+1
Hi,
Yes, I rebuild every time my sendmail files.....
Restarting Dovecot, I have
Jul 18 20:56:24 mbox1.xxx.net systemd[1]: Starting Dovecot IMAP/POP3 email server... Jul 18 20:56:24 mbox1.xxx.net systemd[1]: Started Dovecot IMAP/POP3 email server. Jul 18 20:56:24 mbox1xxx.net dovecot[4629]: master: Dovecot v2.3.8 (9df20d2db) starting up for imap, pop3, lmtp [root@mbox1 mailer]#
Jul 18 21:25:02 master: Info: Dovecot v2.3.8 (9df20d2db) starting up for imap, pop3, lmtp Jul 18 21:25:05 imap-login: Info: Login: user=<azt000>, method=PLAIN, rip=109.190.102.80, lip=172.18.3.226, mpid=4833, TLS, session=<JQAwx2rHKv9tvmZQ> Jul 18 21:25:09 imap-login: Info: Login: user=<azt000>, method=PLAIN, rip=109.190.102.80, lip=172.18.3.226, mpid=4872, TLS, session=<diRnx2rHLf9tvmZQ> Jul 18 21:25:12 imap-login: Info: Login: user=<azt000>, method=PLAIN, rip=109.190.102.80, lip=172.18.3.226, mpid=4874, TLS, session=<gCaRx2rHL/9tvmZQ> Jul 18 21:25:12 imap-login: Info: Login: user=<azt000>, method=PLAIN, rip=109.190.102.80, lip=172.18.3.226, mpid=4876, TLS, session=<98SZx2rHMP9tvmZQ> Jul 18 21:25:13 imap-login: Info: Login: user=<azt000>, method=PLAIN, rip=109.190.102.80, lip=172.18.3.226, mpid=4878, TLS, session=</marx2rHMf9tvmZQ> Jul 18 21:28:08 master: Info: Dovecot v2.3.8 (9df20d2db) starting up for imap, pop3, lmtp Jul 18 21:29:18 master: Info: Dovecot v2.3.8 (9df20d2db) starting up for imap, pop3, lmtp
But sending an email.. I've received this ----- The following addresses had permanent fatal errors ----- <azer0@sss.com <mailto:azt000@aztgrp.net>> * (reason: 554 5.3.5 buildaddr: unknown mailer unknown: Unknown error -30988)* Into sendmail, I have only : *MAILER(dovecot)dnl* with Mdovecot, P=[IPC], F=l59DFMPhnu, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, U=mail:mail, T=DNS/RFC822/SMTP, A=TCP $h 24 into dovecot ( I removed the lince address = 127.0.0.1 ) service lmtp { inet_listener lmtp { port = 24 } unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } } and sendmail log file says Jul 18 21:39:50 mbox1 sm-msp-queue[3065]: starting daemon (8.15.2): queueing@01:00:00 Jul 18 21:41:15 mbox1 sendmail[3213]: STARTTLS=server, relay=sas.intranet.office.itx [172.18.2.85], version=TLSv1.3, verify=NO, cipher=TLS_AES_256_GCM_SHA384, bits=256/256 Jul 18 21:41:15 mbox1 sendmail[3213]: 16IJfFRE003213: SYSERR(root): buildaddr: unknown mailer unknown: Unknown error -30988 Thanks and regards,
-------- Message transféré -------- Sujet : Re: folders and subfolders Date : Sun, 18 Jul 2021 17:48:15 +0200 De : Alexander Dalloz <ad+lists@uni-x.org> Pour : dovecot@dovecot.org
Am 18.07.2021 um 16:48 schrieb Stephane Magnier:
Hi,
Please don't mail me personally. I am subscribed to this list and don't want to get mail conversation twice.
And please check to no send HTML formatted mail to mailing lists. Do not top-post either.
After tyding up, here are the files:
*Sendmail :*
define(
DOVECOT_MAILER_ARGS',
TCP ipv4.localhost 24')dnl MAILER(dovecot)dnl
Ok, sure that those entries, especially the MAILER, are located at the end of the sendmail.mc file? Did you afterwards rebuild the sendmail.cf?
With: /usr/share/sendmail/mailer/dovecot.m4
Mdovecot, P=[IPC], F=l59DFMPhnu, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, U=mail:mail, * T=DNS/RFC822/SMTP,* A=TCP $h 24 Do you think that T is correct ?
Yes.
*On Dovecot I have*
Mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp { inet_listener lmtp { address = 127.0.0.1 ::1 port = 24 } unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } }
and I am still not be able to receive emails into the inbox
And what is being logged by Sendmail and by dovecot?
[ ... ]
Alexander
Am 18.07.2021 um 21:45 schrieb Stephane Magnier:
and sendmail log file says Jul 18 21:39:50 mbox1 sm-msp-queue[3065]: starting daemon (8.15.2): queueing@01:00:00 Jul 18 21:41:15 mbox1 sendmail[3213]: STARTTLS=server, relay=sas.intranet.office.itx [172.18.2.85], version=TLSv1.3, verify=NO, cipher=TLS_AES_256_GCM_SHA384, bits=256/256 Jul 18 21:41:15 mbox1 sendmail[3213]: 16IJfFRE003213: SYSERR(root): buildaddr: unknown mailer unknown: Unknown error -30988 Thanks and regards,
Did you remove the smtp MAILER?
It is not helpful to provide just that part of the configuration you think it tells everything about both server applications.
Alexander
hi,
Please find the config files..
Here is the config
*Sendmail*
divert(-1)dnl
include(/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(
setup for linux')dnl
OSTYPE(linux')dnl dnl ## define(
confPRIVACY_FLAGS',`authwarnings,novrfy,noexpn,restrictqrun,needmailhelo,needvrfyhelo,restrictqrun')dnl
LOCAL_DOMAIN(mbox1.aztgrp.net')dnl # DeliveryMode=queueonly define(
confDELIVERY_MODE',background')dnl dnl ###################################"""""""""# dnl dnl ###### spamass-milter ##### MAIL_FILTER(
spamassassin',`S=local:/run/spamass-milter/spamass-milter.sock,
F=, T=C:15m;S:4m;R:4m;E:10m')dnl
dnl ######
dnl ################ security #####
define(confCT_FILE',
/etc/mail/trusted.list')dnl
define(confMAX_MESSAGE_SIZE',24000000) define(
confSAFE_QUEUE',true')dnl dnl ############ connection SPAM ########### define(
confDOUBLE_BOUNCE_ADDRESS',it@ooooo.com') dnl ###### DNSBL#### FEATURE(
dnsbl',dnsbl.office.itx')dnl dnl ######### min connection Regulate flow ######### define(
confMAX_DAEMON_CHILDREN',312)
define(confMAX_QUEUE_CHILDREN',120)dnl define(
confMAX_RUNNERS_PER_QUEUE',5)dnl
dnl #define(MAX_QUEUE_CHILDREN',10)dnl define(
confMAX_QUEUE_RUN_SIZE',200)dnl
dnl ############################# dnl
FEATURE(delay_checks')dnl FEATURE(
access_db', hash -T<TMPF> -o /etc/mail/access.db')dnl FEATURE(
ratecontrol',nodelay',
terminate',conncontrol')dnl define(
confCONNECTION_RATE_THROTTLE',30)dnl
dnl # define(confCONNECTION_RATE_WINDOW_SIZE',90s)dnl define(
confMAXRCPTSPERMESSAGE', 15')dnl define(
confBAD_RCPT_THROTTLE',12)dnl
define(confTRY_NULL_MX_LIST',
True')dnl
define(confCW_FILE',
/etc/mail/local-host-names')dnl
define(confNO_RCPT_ACTION',
add-to-undisclosed')dnl
define(confRRT_IMPLIES_DSN')dnl dnl ## dnl ### milter-limit define(
confMILTER_MACROS_EOM', {msg_id}')dnl dnl ## dnl ######################dnl dnl ################ Def RELAY define(
SMTP_MAILER_FLAGS',l8')dnl define(
ESMTP_MAILER_FLAGS',l8')dnl define(
SMART_HOST',sas.intranet.office.itx') define(
RELAY_MAILER',RELAY')dnl dnl ##### define(
confSMTP_LOGIN_MSG',mbox1.xxxx.net - $b') define(
confQUEUE_SORT_ORDER',Time')dnl define(
confDEF_USER_ID', ``8:12'')dnl
dnl define(confAUTO_REBUILD')dnl dnl #define(
confTO_CONNECT',0)dnl
define(confTRY_NULL_MX_LIST',
True')dnl
define(confDONT_PROBE_INTERFACES',
True')dnl
define(PROCMAIL_MAILER_PATH',
/usr/bin/procmail')dnl
define(ALIAS_FILE',
/etc/aliases')dnl
define(STATUS_FILE',
/var/log/mail/statistics')dnl
define(UUCP_MAILER_MAX',
2000000')dnl
define(confTIME_ZONE',
CEST')dnl
define(confUSERDB_SPEC',
/etc/mail/userdb.db')dnl
define(confQUEUE_SORT_ORDER',priority)dnl define(
confTO_QUEUERETURN',2h') define(
confTO_QUEUEWARN',10m') dnl ####### 03/11/20 define(
confWORK_RECIPIENT_FACTOR', 1000')dnl define(
confWORK_TIME_FACTOR',6000)dnl
define(confTO_HOSTSTATUS',
15m')dnl
dnl # define(confTO_DATAINIT',
6m')dnl
dnl # define(confTO_DATABLOCK',
35m')dnl
dnl # define(confTO_DATAFINAL',
35m')dnl
dnl #### Max load average for sending dnl
dnl # ax load average for receiving dnl
define(confQUEUE_LA',30) define(
confREFUSE_LA',156)dnl
define(confDELAY_LA',3)dnl dnl # define(
confTO_IDENT',0)
dnl ######### Direct go everywhere
dnl # FEATURE(accept_unresolvable_domains')dnl dnl # FEATURE(
accept_unqualified_senders')dnl
define(confDIRECT_SUBMISSION_MODIFIERS',
C')dnl
dnl #
define(confBIND_OPTS',
-DNSRCH -DEFNAMES +WorkAroundBrokenAAAA')dnl
dnl ##############################
dnl # If you're operating in a DSCP/RFC-4594 environment with QoSdnl
define(confINET_QOS',
AF33')dnl
dnl ### ne souhaite pas necessairement le cryptage
dnl # define(confTLS_SRV_OPTIONS',
V')dnl
FEATURE(delay_checks)dnl
FEATURE(no_default_msa',
dnl')dnl
FEATURE(smrsh',
/usr/sbin/smrsh')dnl
FEATURE(mailertable',
hash -o /etc/mail/mailertable.db')dnl
FEATURE(virtusertable',
hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(domaintable)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(nocanonify',
canonify_hosts')dnl
dnl #### sasl ####
define(confAUTH_OPTIONS',
A,')
TRUST_AUTH_MECH(LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl define(
confAUTH_MECHANISMS', LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl dnl # dnl ###########################################################################dnl dnl ###########################################################################dnl dnl ###################### SSL/ STARTTLS ####################dnl define(
confCACERT_PATH', /etc/mail/ssl/ssl1')dnl define(
confCACERT', /etc/mail/ssl/ssl1/STAR_xxx_net.ca-bundle')dnl define(
confSERVER_CERT', /etc/mail/ssl/ssl1/STAR_xxxx_net.crt')dnl define(
confSERVER_KEY', /etc/mail/ssl/ssl1/private.key')dnl define(
confCLIENT_CERT',/etc/mail/ssl/ssl1/STAR_xxx_net.crt')dnl define(
confCLIENT_KEY',/etc/mail/ssl/ssl1/private.key')dnl dnl ###########################################################################dnl dnl dnl ############ OPENDKIM #################################### MAIL_FILTER(
opendkim', S=inet:8891@127.0.0.1')dnl define(
confMILTER_MACROS_ENVFROM', i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}')dnl define(
confMILTER_MACROS_ENVRCPT',`r, v, b, Z, {auth_type}, {greylist},
{auth_ssf}')dnl
define(confRECEIVED_HEADER',
( _Code originator:
MBOX1_901_13_)_$?{auth_type}Abused? contact-us_at **
abuse@azure-telecom.com **')dnl
define(confMILTER_MACROS_CONNECT',
b,j, _, {daemon_name}, {if_name},
{if_addr}, {client_resolve}')dnl dnl #### Local lmtp/Dovecot ######
define(DOVECOT_MAILER_ARGS',
TCP $h 24')dnl
dnl ############################ FIN OPENDKIM ######
dnl ###### boost traitement ############"dnl
FEATURE(access_db',
hash -T<TMPF> -o /etc/mail/access.db')dnl
dnl # define(confCONNECTION_RATE_THROTTLE',2800)dnl FEATURE(local_procmail,
', procmail -t -Y -a $h -d $u')dnl dnl # FEATURE(
local_lmtp') dnl
MAILER(dovecot)dnl
dnl #MAILER(smtp)dnl
dnl #MAILER(procmail)dnl
dnl #############################################################
DAEMON_OPTIONS(Name=MTA,Family=inet,Port=25') DAEMON_OPTIONS(
Name=MTA2,Family=inet6,Port=587,Modifiers=aE')
DAEMON_OPTIONS(Name=MSA,Family=inet6,Port=465,Modifiers=asE') DAEMON_OPTIONS(
Name=TRANS, family=inet, Port=900,Modifiers=bh')*
*
*Dovecot*
# 2.3.8 (9df20d2db): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.8 (b7b03ba2) # OS: Linux 4.18.0-305.7.1.el8_4.x86_64 x86_64 CentOS Linux release 8.4.2105 xfs # Hostname: mbox1.xxx.net auth_mechanisms = plain login auth_username_format = %u debug_log_path = /var/log/dovecot-debug.log default_vsz_limit = 4 G info_log_path = /var/log/dovecot-info.log listen = * log_path = /var/log/dovecot.log login_trusted_networks = 172.18.0.0/16 127.0.0.1 ::1 mail_access_groups = dovecot mail_fsync = always mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs mail_plugins = " quota" mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave mbox_very_dirty_syncs = yes mbox_write_locks = fcntl mmap_disable = yes namespace inbox { disabled = no ignore_on_failure = no inbox = yes list = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe autoexpunge = 12 weeks special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = no autoexpunge = 12 weeks special_use = \Trash } mailbox virtual/All { auto = no special_use = \All } prefix = subscriptions = yes type = private } passdb { driver = pam } plugin { quota_grace = 10%% quota_max_mail_size = 100M quota_rule = *:storage=10000M quota_rule2 = Trash:Storage=+100M quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = file:~/sieve;active=~/.dovecot.sieve } pop3_uidl_format = %v-%u service auth { unix_listener auth-master { mode = 0666 } } service dict { unix_listener dict { mode = 0600 user = mail } } service imap-login { inet_listener imap { port = 0 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { inet_listener lmtp { port = 24 } unix_listener /var/run/lmtp { group = mail mode = 0660 user = mail } } service pop3-login { inet_listener pop3 { address = * port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = mail } user = dovecot } service submission { process_limit = 250 } ssl = required ssl_ca = </etc/mail/ssl/ssl1/STAR_xxxx_net.ca-bundle ssl_cert = </etc/mail/ssl/ssl1/STAR_xxxx_net.crt ssl_cipher_list = HIGH:!aNULL:!ADH:!DH:!RC4:!MD5:!RSA ssl_dh = # hidden, use -P to show it ssl_key = # hidden, use -P to show it userdb { driver = passwd } verbose_proctitle = yes protocol lmtp { mail_fsync = optimized mail_plugins = autocreate quota acl fts fts_solr zlib mail_log notify sieve postmaster_address = it@intranet.office.itx } protocol lda { mail_fsync = optimized mail_plugins = " quota sieve quota" } protocol imap { mail_max_userip_connections = 80 mail_plugins = " quota quota imap_quota" ssl_cert = </etc/mail/ssl/ssl1/STAR_xxx_net.crt ssl_key = # hidden, use -P to show it } protocol pop3 { mail_max_userip_connections = 10 mail_plugins = " quota" } protocol submission { mail_max_userip_connections = 10 mail_plugins = " quota" }
Le 18/07/2021 à 22:25, Alexander Dalloz a écrit :
Am 18.07.2021 um 21:45 schrieb Stephane Magnier:
and sendmail log file says Jul 18 21:39:50 mbox1 sm-msp-queue[3065]: starting daemon (8.15.2): queueing@01:00:00 Jul 18 21:41:15 mbox1 sendmail[3213]: STARTTLS=server, relay=sas.intranet.office.itx [172.18.2.85], version=TLSv1.3, verify=NO, cipher=TLS_AES_256_GCM_SHA384, bits=256/256 Jul 18 21:41:15 mbox1 sendmail[3213]: 16IJfFRE003213: SYSERR(root): buildaddr: unknown mailer unknown: Unknown error -30988 Thanks and regards,
Did you remove the smtp MAILER?
It is not helpful to provide just that part of the configuration you think it tells everything about both server applications.
Alexander
Am 19.07.2021 um 06:49 schrieb Stephane Magnier:
define(
DOVECOT_MAILER_ARGS',
TCP $h 24')dnl
Why do you define that here? It is already in your dovecot.m4.
dnl ############################ FIN OPENDKIM ###### dnl ###### boost traitement ############"dnl FEATURE(
access_db',
hash -T<TMPF> -o /etc/mail/access.db')dnl dnl # define(confCONNECTION_RATE_THROTTLE',2800)dnl FEATURE(local_procmail,
',procmail -t -Y -a $h -d $u')dnl dnl # FEATURE(
local_lmtp') dnl MAILER(dovecot)dnl dnl #MAILER(smtp)dnl
You need the SMTP MAILER!
dnl #MAILER(procmail)dnl
Do not place anything below the MAILER definitions. There are very few exceptions. See
https://www.sendmail.org/~ca/email/doc8.12/cf/m4/intro.html
"Beware: MAILER declarations should always be at the end of the configuration file."
dnl ############################################################# DAEMON_OPTIONS(
Name=MTA,Family=inet,Port=25') DAEMON_OPTIONS(
Name=MTA2,Family=inet6,Port=587,Modifiers=aE') DAEMON_OPTIONS(Name=MSA,Family=inet6,Port=465,Modifiers=asE') DAEMON_OPTIONS(
Name=TRANS, family=inet, Port=900,Modifiers=bh')
In case adding the SMTP MAILER does not fix your issue at this state, please provide log details which represents the errors reported by Sendmail and/or dovecot.
Alexander
Hi,
Do you agree that if I 'm listening on opened ports, I should see twice the port 24 ?
I stopped the sendmail service .. I start Dovecot :nmap give me this
*/var/log/dovecot-info.log*
Jul 20 08:47:50 master: Info: Dovecot v2.3.8 (9df20d2db) *starting up for imap, pop3, lmtp*
and nmap
PORT STATE SERVICE 22/tcp open ssh *24/tcp open priv-mail* 110/tcp open pop3 111/tcp open rpcbind 631/tcp open ipp 783/tcp open spamassassin 993/tcp open imaps 995/tcp open pop3s 10000/tcp open snet-sensor-mgmt => I can see the port 24 running
now, closing dovecot service and starting sendmail
PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind 465/tcp open smtps 587/tcp open submission 631/tcp open ipp 783/tcp open spamassassin 900/tcp open omginitialrefs 10000/tcp open snet-sensor-mgmt
So, this is no port 24 opened -> this is sendmail, which is not working as lmtp port. I can alos recognize all the opened ports.. this is any lmtp server running
Do you agree ? if not, how can I trace the lmtp port ? The log file for Sendmail, doesn't say anything at all When an email is coming.. I cannot see anywhere something linked ot lmtp.. absolutely non existant
================
Sendmail CF is
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl ##
define(`confPRIVACY_FLAGS',`authwarnings,novrfy,noexpn,restrictqrun,needmailhelo,needvrfyhelo,restrictqrun')dnl
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
# DeliveryMode=queueonly
define(`confDELIVERY_MODE',`background')dnl
dnl ###################################"""""""""# dnl
dnl ###### spamass-milter #####
MAIL_FILTER(`spamassassin',`S=local:/run/spamass-milter/spamass-milter.sock,
F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name},
{if_name}, {if_addr}')dnl
dnl ######
dnl ################ security #####
define(`confCT_FILE', `/etc/mail/trusted.list')dnl
define(`confMAX_MESSAGE_SIZE',24000000)
define(`confSAFE_QUEUE',`true')dnl
dnl ############ connection SPAM ###########
define(`confDOUBLE_BOUNCE_ADDRESS',`it@xxx.com')
dnl ###### DNSBL####
FEATURE(`dnsbl',`dnsbl.office.itx')dnl
dnl # FEATURE(`dnsbl',`sbl.spamhaus.org')dnl
dnl # FEATURE(`dnsbl',`rbl.metunet.com ',`"Email suspected to be a
spam with the IP address: "$&{client_addr} " - contact us via
another way if you are not a SPAM"')dnl
dnl ######
dnl ######### min connection Regulate flow #########
define(`confMAX_DAEMON_CHILDREN',312)
define(`confMAX_QUEUE_CHILDREN',120)dnl
define(`confMAX_RUNNERS_PER_QUEUE',5)dnl
define(`confMAX_QUEUE_RUN_SIZE',200)dnl
dnl ############################# dnl
FEATURE(`delay_checks')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`ratecontrol',`nodelay',`terminate',`conncontrol')dnl
define(`confCONNECTION_RATE_THROTTLE',30)dnl
dnl # define(`confCONNECTION_RATE_WINDOW_SIZE',90s)dnl
define(`confMAXRCPTSPERMESSAGE', `15')dnl
define(`confBAD_RCPT_THROTTLE',12)dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confCW_FILE',`/etc/mail/local-host-names')dnl
define(`confNO_RCPT_ACTION',`add-to-undisclosed')dnl
define(`confRRT_IMPLIES_DSN')dnl
dnl ##
dnl ### milter-limit
define(`confMILTER_MACROS_EOM', `{msg_id}')dnl
dnl ##
dnl ######################dnl
dnl ################ Def RELAY
dnl # FEATURE(`relay_hosts_only')dnl
define(`SMTP_MAILER_FLAGS',`l8')dnl
define(`ESMTP_MAILER_FLAGS',`l8')dnl
define(`SMART_HOST',`sas.intranet.office.itx')
define(`RELAY_MAILER',`RELAY')dnl
dnl #####
define(`confSMTP_LOGIN_MSG',`mbox1.xxxx.net - $b')
define(`confQUEUE_SORT_ORDER',`Time')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
dnl #define(`confTO_CONNECT',0)dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confTIME_ZONE',`CEST')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confQUEUE_SORT_ORDER',priority)dnl
define(`confTO_QUEUERETURN',`2h')
define(`confTO_QUEUEWARN',`10m')
dnl ####### 03/11/20
define(`confWORK_RECIPIENT_FACTOR', `1000')dnl
define(`confWORK_TIME_FACTOR',6000)dnl
define(`confTO_HOSTSTATUS',`15m')dnl
dnl # define(`confTO_DATAINIT', `6m')dnl
dnl # define(`confTO_DATABLOCK', `35m')dnl
dnl # define(`confTO_DATAFINAL', `35m')dnl
dnl #### Max load average for sending dnl
dnl # ax load average for receiving dnl
define(`confQUEUE_LA',30)
define(`confREFUSE_LA',156)dnl
define(`confDELAY_LA',3)dnl
dnl # define(`confTO_IDENT',0)
dnl ######### Direct go everywhere
dnl # FEATURE(`accept_unresolvable_domains')dnl
dnl # FEATURE(`accept_unqualified_senders')dnl
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl
dnl #
define(`confBIND_OPTS', `-DNSRCH -DEFNAMES +WorkAroundBrokenAAAA')dnl
dnl ##############################
dnl # If you're operating in a DSCP/RFC-4594 environment with QoSdnl
define(`confINET_QOS',`AF33')dnl
dnl ### ne souhaite pas necessairement le cryptage
dnl # define(`confTLS_SRV_OPTIONS', `V')dnl
FEATURE(delay_checks)dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(domaintable)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(`nocanonify',`canonify_hosts')dnl
dnl #FEATURE(`blacklist_recipients')dnl
dnl #
dnl #### sasl ####
define(`confAUTH_OPTIONS',`A,')
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
dnl #
dnl
###########################################################################dnl
dnl
###########################################################################dnl
dnl ###################### SSL/ STARTTLS ####################dnl
define(`confCACERT_PATH', `/etc/mail/ssl/ssl1')dnl
define(`confCACERT', `/etc/mail/ssl/ssl1/STAR_xxx_net.ca-bundle')dnl
define(`confSERVER_CERT', `/etc/mail/ssl/ssl1/STAR_xxx_net.crt')dnl
define(`confSERVER_KEY', `/etc/mail/ssl/ssl1/private.key')dnl
define(`confCLIENT_CERT',`/etc/mail/ssl/ssl1/STAR_xxx_net.crt')dnl
define(`confCLIENT_KEY',`/etc/mail/ssl/ssl1/private.key')dnl
dnl
###########################################################################dnl
dnl ############ OPENDKIM ####################################
MAIL_FILTER(`opendkim', `S=inet:8891@127.0.0.1')dnl
define(`confMILTER_MACROS_ENVFROM', `i, {auth_type}, {auth_authen},
{auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}')dnl
define(`confMILTER_MACROS_ENVRCPT',`r, v, b, Z, {auth_type},
{greylist}, {auth_ssf}')dnl
define(`confRECEIVED_HEADER',`( _Code originator:
MBOX1_901_13_)_$?{auth_type}Abused? contact-us_at **
abuse@foo.saa**')dnl
dnl #### Local lmtp/Dovecot ######
dnl # define(`DOVECOT_MAILER_ARGS', `TCP $h 24')dnl
dnl ####FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot/lmtp')dnl
dnl ############################ FIN OPENDKIM ######
dnl ###### boost traitement ############"dnl
dnl #############################################################
DAEMON_OPTIONS(`Name=MTA,Family=inet,Port=25')
DAEMON_OPTIONS(`Name=MTA2,Family=inet6,Port=587,Modifiers=aE')
DAEMON_OPTIONS(`Name=MSA,Family=inet6,Port=465,Modifiers=asE')
DAEMON_OPTIONS(`Name=TRANS, family=inet, Port=900,Modifiers=bh')
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
dnl # define(`confCONNECTION_RATE_THROTTLE',2800)dnl
dnl # FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
MAILER(dovecot)dnl
MAILER(smtp)dnl
and /usr/share/sendmail-cf/mail/dovecot.m4
Mdovecot, P=[IPC], F=l59DFMPhnu, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, U=mail:mail, T=DNS/RFC822/SMTP, A=TCP localhost 24
REceiving an email
Jul 20 09:13:09 mbox1 sendmail[5595]: STARTTLS=server, relay=sas.intranet.office.itx [172.18.2.85], version=TLSv1.3, verify=NO, cipher=TLS_AES_256_GCM_SHA384, bits=256/256 Jul 20 09:13:09 mbox1 sendmail[5595]: 16K7D9xA005595: from=<alertalert13@azer.com>, size=2443, class=0, nrcpts=1, msgid=<52761626765166@mail.azer.com>, proto=ESMTPS, daemon=TRANS, relay=sas.intranet.office.itx [172.18.2.85] Jul 20 09:13:09 mbox1 spamd[1858]: spamd: connection from ::1 [::1]:50664 to port 783, fd 5 Jul 20 09:13:09 mbox1 spamd[1858]: spamd: setuid to user1 succeeded Jul 20 09:13:09 mbox1 spamd[1858]: spamd: processing message <52761626765166@mail.azer.com> for user1:1001 Jul 20 09:13:09 mbox1 spamd[1858]: dns: no callback for id 63256/IN/A/sas1-d367461f7756.qloud-c.yandex.net, ignored, packet on next debug line Jul 20 09:13:09 mbox1 spamd[1858]: dns: no likely matching queries for id 63256 Jul 20 09:13:09 mbox1 spamd[1858]: dns: no callback for id 29336/IN/TXT/sas1-d367461f7756.qloud-c.yandex.net, ignored, packet on next debug line Jul 20 09:13:09 mbox1 spamd[1858]: dns: no likely matching queries for id 29336 Jul 20 09:13:13 mbox1 spamd[1858]: spamd: clean message (-292.6/5.0) for user1:1001 in 3.7 seconds, 2582 bytes. Jul 20 09:13:13 mbox1 spamd[1858]: spamd: result: . -292 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HELO_DYNAMIC_IPADDR,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MAIL_GENERAL,MIME_HTML_ONLY,PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_SOFTFAIL,T_SPF_HELO_TEMPERROR,UNPARSEABLE_RELAY,URIBL_BLOCKED scantime=3.7,size=2582,user=user1,uid=1001,required_score=5.0,rhost=::1,raddr=::1,rport=50664,mid=<52761626765166@mail.azer.com>,autolearn=ham autolearn_force=no Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
-------- Message transféré -------- Sujet : Re: Fwd: folders and subfolders Date : Mon, 19 Jul 2021 18:03:31 +0200 De : Alexander Dalloz <ad+lists@uni-x.org> Pour : dovecot@dovecot.org
Am 19.07.2021 um 06:49 schrieb Stephane Magnier:
define(
DOVECOT_MAILER_ARGS',
TCP $h 24')dnl
Why do you define that here? It is already in your dovecot.m4.
dnl ############################ FIN OPENDKIM ###### dnl ###### boost traitement ############"dnl FEATURE(
access_db',
hash -T<TMPF> -o /etc/mail/access.db')dnl dnl # define(confCONNECTION_RATE_THROTTLE',2800)dnl FEATURE(local_procmail,
',procmail -t -Y -a $h -d $u')dnl dnl # FEATURE(
local_lmtp') dnl MAILER(dovecot)dnl dnl #MAILER(smtp)dnl
You need the SMTP MAILER!
dnl #MAILER(procmail)dnl
Do not place anything below the MAILER definitions. There are very few exceptions. See
"Beware: MAILER declarations should always be at the end of the configuration file."
dnl ############################################################# DAEMON_OPTIONS(
Name=MTA,Family=inet,Port=25') DAEMON_OPTIONS(
Name=MTA2,Family=inet6,Port=587,Modifiers=aE') DAEMON_OPTIONS(Name=MSA,Family=inet6,Port=465,Modifiers=asE') DAEMON_OPTIONS(
Name=TRANS, family=inet, Port=900,Modifiers=bh')
In case adding the SMTP MAILER does not fix your issue at this state, please provide log details which represents the errors reported by Sendmail and/or dovecot.
Alexander
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
Sendmail is using the local mailer as you can see above.
Your Sendmail m4 config is overly complex. For which purpose do you set
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.
Alexander
Le 20/07/2021 à 18:25, Alexander Dalloz a écrit :
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
Sendmail is using the local mailer as you can see above.
Your Sendmail m4 config is overly complex. For which purpose do you set
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.
Alexander
To be honest.. I don't know : I thought that the server being mbox1.xxxx.netn, I declared mbox1.xxxx.net in it..
OK I remove it..
Am 20.07.2021 um 18:31 schrieb Stephane Magnier:
Le 20/07/2021 à 18:25, Alexander Dalloz a écrit :
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
Sendmail is using the local mailer as you can see above.
Your Sendmail m4 config is overly complex. For which purpose do you set
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.
Alexander
To be honest.. I don't know : I thought that the server being mbox1.xxxx.netn, I declared mbox1.xxxx.net in it..
OK I remove it..
You can validate which domains your Sendmail treats as local aka class w by
echo '$=w' | sendmail -bt
In case you want or need to override the Sendmail's host identity you can specify
define(confDOMAIN_NAME',
example.com')dnl
Alexander
Le 20/07/2021 à 18:39, Alexander Dalloz a écrit :
Am 20.07.2021 um 18:31 schrieb Stephane Magnier:
Le 20/07/2021 à 18:25, Alexander Dalloz a écrit :
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
Sendmail is using the local mailer as you can see above.
Your Sendmail m4 config is overly complex. For which purpose do you set
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.
Alexander
To be honest.. I don't know : I thought that the server being mbox1.xxxx.netn, I declared mbox1.xxxx.net in it..
OK I remove it..
You can validate which domains your Sendmail treats as local aka class w by
echo '$=w' | sendmail -bt
In case you want or need to override the Sendmail's host identity you can specify
define(
confDOMAIN_NAME',
example.com')dnlAlexander
OK thanks
Le 20/07/2021 à 18:39, Alexander Dalloz a écrit :
Am 20.07.2021 um 18:31 schrieb Stephane Magnier:
Le 20/07/2021 à 18:25, Alexander Dalloz a écrit :
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
Sendmail is using the local mailer as you can see above.
Your Sendmail m4 config is overly complex. For which purpose do you set
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.
Alexander
To be honest.. I don't know : I thought that the server being mbox1.xxxx.netn, I declared mbox1.xxxx.net in it..
OK I remove it..
You can validate which domains your Sendmail treats as local aka class w by
echo '$=w' | sendmail -bt
In case you want or need to override the Sendmail's host identity you can specify
define(
confDOMAIN_NAME',
example.com')dnlAlexander
Hi
I found this... I"'ve made some test.. not very susccesful at the moment, but could it be a possibility to dig up ?
I found this page
http://etutorials.org/server+administration/sendmail/part+i+build+and+instal... <http://etutorials.org/server+administration/sendmail/part+i+build+and+install/chapter+4.+configure+sendmail.cf+with+m4/featurelocal_lmtp/>
Where they explained just to add this
FEATURE(local_lmtp') MAILER(
local')
I can also see :
FEATURE(local_lmtp',
/usr/sbin/mail.local')
MAILER(`local')
So, having Dovecot : 10-master.conf service lmtp { unix_listener /var/run/lmtp { mode = 0660 user = mail group = mail } }
I wrote FEATURE(localhost_lmtp',
/var/run/lmtp')
Jul 20 18:22:29 mbox1 sm-msp-queue[8380]: starting daemon (8.15.2): queueing@01:00:00 Jul 20 18:22:29 mbox1 sendmail[8382]: 16KG6Rtr006493: SYSERR(root): Cannot exec /var/run/lmtp: Permission denied Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: smtpquit: mailer local exited with exit value 71 Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: to=azt000, delay=00:16:00, xdelay=00:00:00, mailer=local, pri=6225520, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local
I also try to change chmod lmtp.. 0660 or 640.. nothing is working (
OK, that was just a test :-(
On Tue, 20 Jul 2021, Stephane Magnier wrote:
I found this page
http://etutorials.org/server+administration/sendmail/part+i+build+and+instal...
Where they explained just to add this
FEATURE(
local_lmtp') MAILER(
local')I can also see :
FEATURE(
local_lmtp',
/usr/sbin/mail.local') MAILER(`local')So, having Dovecot : 10-master.conf service lmtp { unix_listener /var/run/lmtp { mode = 0660 user = mail group = mail } }
I wrote FEATURE(
localhost_lmtp',
/var/run/lmtp')
No, no. What you're stipulating here is that /var/run/lmtp is an executable that communicates LMTP via stdin, whereas dovecot is configured to communicates LMTP via a socket connection to /var/run/lmtp. You need to configure sendmail
FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/lmtp')
If you don't need LMTP exposed to the internet (i.e. your front-end MTA is on the same host as your LMTP), socket connection is probably simpler and safer than TCP connections.
Joseph Tam <jtam.home@gmail.com>
Le 20/07/2021 à 18:43, Stephane Magnier a écrit :
Le 20/07/2021 à 18:39, Alexander Dalloz a écrit :
Am 20.07.2021 um 18:31 schrieb Stephane Magnier:
Le 20/07/2021 à 18:25, Alexander Dalloz a écrit :
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
Jul 20 09:13:13 mbox1 sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0, stat=Sent Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II
and absolutely NOTHING on Dovecot log file.. and I cannot see anything
Sendmail is using the local mailer as you can see above.
Your Sendmail m4 config is overly complex. For which purpose do you set
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl
And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.
Alexander
To be honest.. I don't know : I thought that the server being mbox1.xxxx.netn, I declared mbox1.xxxx.net in it..
OK I remove it..
You can validate which domains your Sendmail treats as local aka class w by
echo '$=w' | sendmail -bt
In case you want or need to override the Sendmail's host identity you can specify
define(
confDOMAIN_NAME',
example.com')dnlAlexander
Hi
I found this... I"'ve made some test.. not very susccesful at the moment, but could it be a possibility to dig up ?
I found this page
http://etutorials.org/server+administration/sendmail/part+i+build+and+instal... <http://etutorials.org/server+administration/sendmail/part+i+build+and+install/chapter+4.+configure+sendmail.cf+with+m4/featurelocal_lmtp/>
Where they explained just to add this
FEATURE(
local_lmtp') MAILER(
local')I can also see : FEATURE(
local_lmtp',
/usr/sbin/mail.local') MAILER(`local')So, having Dovecot : 10-master.conf service lmtp { unix_listener /var/run/lmtp { mode = 0660 user = mail group = mail } }
I wrote FEATURE(
localhost_lmtp',
/var/run/lmtp')Jul 20 18:22:29 mbox1 sm-msp-queue[8380]: starting daemon (8.15.2): queueing@01:00:00 Jul 20 18:22:29 mbox1 sendmail[8382]: 16KG6Rtr006493: SYSERR(root): Cannot exec /var/run/lmtp: Permission denied Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: smtpquit: mailer local exited with exit value 71 Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: to=azt000, delay=00:16:00, xdelay=00:00:00, mailer=local, pri=6225520, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local
I also try to change chmod lmtp.. 0660 or 640.. nothing is working (
OK, that was just a test :-(
Hi,
This is working out now. So to sum up the situation..
I am using an OS CentOS v8 with Dovecot v 2.3.8 and Sendmail v 8.15.2
Making an LMTP Server :
*on Sendmail ( /etc/mail/sendmail.mc )*
FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/lmtp')
MAILER(`local')
MAILER(`smtp')
*On Dovecot*
service lmtp {
inet_listener lmtp {
port = 24
}
unix_listener /var/run/lmtp {
group = mail
mode = 0660
user = mail
}
}
protocol lmtp {
mail_fsync = optimized
mail_plugins = autocreate quota acl fts fts_solr zlib mail_log notify sieve
postmaster_address = it@intranet.office.itx
}
Ad that's it really... Hope this will help for the others in the future
participants (5)
-
Aki Tuomi
-
Alexander Dalloz
-
Benny Pedersen
-
Joseph Tam
-
Stephane Magnier