Re: Dovecot on CentOS 7
Hi. Check your Firewall 2018-07-10 12:28 GMT-04:00 Tracy Greggs : > Did you verify the server is listening on 0.0.0.0 and that your > firewall is not blocking? > > tcp0 0 0.0.0.0:993 0.0.0.0:* > LISTEN 2325/dovecot > tcp0 0 0.0.0.0:995 0.0.0.0:* > LISTEN 2325/dovecot > tcp0 0 0.0.0.0:110 0.0.0.0:* > LISTEN 2325/dovecot > tcp0 0 0.0.0.0:143 0.0.0.0:* > LISTEN 2325/dovecot > > > On Tue, Jul 10, 2018 at 11:17 AM, John Rowan > wrote: > > I guess I've been lucky. My Red Hat server I built in 2003 finally gave > up > > the ghost yesterday. Fifteen years with almost zero problems running > 7x24. > > Now I'm trying to build a basic server to host my e-mail using CentOS 7, > > Sendmail and Dovecot. Server is running great as are Sendmail and > Dovecot > > but Dovecot only allows connections from the CentOS 127.0.0.1. I can > telnet > > localhost pop3 and get a +OK Dovecot ready response. Trying to telnet > from > > a different computer on same LAN times out. I've looked at my old > Dovecot > > config files to see how I enabled LAN IP access but the configs have > changed > > a lot since I last installed Dovecot. Googling hasn't helped. Anyone > help > > with a sample config with LAN IPs permitted? >
Re: [Dovecot] mail not reject when the mailbox is full (Dovecot-LDAP-Imap_quota)
Hi list... this is my #dovecot -n thanks.. # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-mckinley ia64 Debian 6.0.5 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/info.log log_timestamp: %Y-%m-%d %H:%M:%S ssl_cert_file: /etc/ssl/correo.crt ssl_key_file: /etc/ssl/correo.key disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable: /usr/lib/dovecot/imap-login login_greeting: Dovecot ready C6. login_process_per_connection: no login_processes_count: 50 login_max_processes_count: 6 login_max_connections: 6 max_mail_processes: 61760 first_valid_uid: 1000 first_valid_gid: 500 mail_access_groups: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u:INDEX=/home/indexes/%u mmap_disable: yes mail_process_size: 2048 mail_plugins: quota imap_quota lda: postmaster_address: victormanu...@gmail.com quota_full_tempfail: no auth default: cache_size: 4096 user: nobody passdb: driver: pam userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf plugin: quota: dirsize quota_exceeded_message: Quota exceeded any idea is welcome 2013/7/14 Daniel Parthey d.part...@metaways.de Hi Victor, you probably forgot to enable/configure quota for LMPT or LDA service which enforces quota during delivery of new mails. If you still need help, please post the complete output of doveconf -n Regards Daniel Victor Oñate victormanu...@gmail.com schrieb: Hello List. Currently I have configured the share of users through the LDAP query as shown #dovecot.conf protocol imap { mail_plugins = quota imap_quota } plugin { quota = dirsize } userdb ldap { args = /etc/dovecot/dovecot-ldap.conf } #dovecot-ldap.conf auth_bind = yes ldap_version = 3 base = dc=XXX,dc=YY,dc=ZZ deref = never scope = subtree user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,mail=Maildir,mailQuotaSize=quota_rule=*:storage=%$ user_filter = ((objectClass=posixAccount)(uid=%u)) pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid pass_filter = ((objectClass=posixAccount)(uid=%u)) Additionally in thunderbird customers have the plug so they can see the share. This works perfect! However, when the mailbox exceeds 100% users continue to receive mail which makes the risk set allocated disk space, the idea is that when full the mail reject with a message mailbox XXX full . As always appreciate the ideas. Victor Oñate
[Dovecot] mail not reject when the mailbox is full (Dovecot-LDAP-Imap_quota)
Hello List. Currently I have configured the share of users through the LDAP query as shown #dovecot.conf protocol imap { mail_plugins = quota imap_quota } plugin { quota = dirsize } userdb ldap { args = /etc/dovecot/dovecot-ldap.conf } #dovecot-ldap.conf auth_bind = yes ldap_version = 3 base = dc=XXX,dc=YY,dc=ZZ deref = never scope = subtree user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,mail=Maildir,mailQuotaSize=quota_rule=*:storage=%$ user_filter = ((objectClass=posixAccount)(uid=%u)) pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid pass_filter = ((objectClass=posixAccount)(uid=%u)) Additionally in thunderbird customers have the plug so they can see the share. This works perfect! However, when the mailbox exceeds 100% users continue to receive mail which makes the risk set allocated disk space, the idea is that when full the mail reject with a message mailbox XXX full . As always appreciate the ideas. Victor Oñate
Re: [Dovecot] Sieve script does not run in dovecot 2.0 on squeeze
Hi. thanks.. I fixed my Postfix configuration, this are a lines add in my main.cf # Configuración LDAP dovecot_destination_recipient_limit = 1 virtual_transport = dovecot virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cfg ldap:/etc/postfix/ldap-aliases.cfg.ext virtual_alias_recursion_limit = 1 virtual_alias_expansion_limit = 1 transport_maps = ldap:/etc/postfix/ldap-transport.cfg and my master.cf add dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} and my dovecot.conf add protocol lda { mail_plugins = $mail_plugins sieve } but the script still does not run. see the logs May 3 09:27:41 correo-s postfix/tlsmgr[16984]: warning: request to update table btree:/var/spool/postfix/smtpd_scache in non-postfix directory /var/spool/postfix May 3 09:27:41 correo-s postfix/tlsmgr[16984]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix May 3 09:27:41 correo-s postfix/tlsmgr[16984]: warning: request to update table btree:/var/spool/postfix/smtp_scache in non-postfix directory /var/spool/postfix May 3 09:27:41 correo-s postfix/tlsmgr[16984]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix May 3 09:27:41 correo-s postfix/smtpd[16982]: connect from server[X.X.X.X] May 3 09:27:41 correo-s postfix/smtpd[16982]: 5B38216EE: client=cliente[X.X.X.x] May 3 09:27:41 correo-s postfix/cleanup[16986]: 5B38216EE: message-id=4fa28edd.90...@dominio.uk May 3 09:27:41 correo-s postfix/smtpd[16982]: disconnect from server[X.X.X.X] May 3 09:27:41 correo-s postfix/qmgr[16893]: 5B38216EE: from=us...@dominio.uk, size=846, nrcpt=1 (queue active) May 3 09:27:41 correo-s postfix/local[16987]: 5B38216EE: to=us...@dominio.uk, relay=local, delay=0.04, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) May 3 09:27:41 correo-s postfix/qmgr[16893]: 5B38216EE: removed 2012-05-03 09:27:45 auth: Warning: userdb(k200,10.40.21.50): Multiple values found for 'Maildir', using value 'us...@dominio.uk' As you can see the mail is delivered correctly to the destination without taking intoaccount the sieve script I use ldap as a backend user then I think we should do something in the file . transport_maps = ldap:/etc/postfix/ldap-transport.cfg this is my dap-transport.cfg file: bind = no version = 3 timeout = 20 start_tls = no tls_require_cert = no server_host = ldap://server-ldap.uk scope = sub search_base = dc=domain,dc=uk query_filter = ((mail=%s)(!(maildrop=mail-squeeze.dominio.uk))) result_format = smtp:[%s] result_attribute = maildrop debuglevel = 0 dereference = 3 Any idea. Thank you. Victor Oñate 2012/5/3 Janne Snabb sn...@epipe.com: On 05/03/2012 04:54 AM, Victor Oñate wrote: In dovecot.conf I have mail_location = maildir:~/Maildir plugin { quota = dirsize sieve=~/currently-active-script.sieve sieve_dir=~/sieve sieve_storage=~/sieve } protocols = imap sieve protocol sieve { managesieve_logout_format = bytes ( in=%i : out=%o ) } service managesieve-login { user = dovecot inet_listener sieve { port = 4190 } process_limit = 2000 } userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } After you have fixed your Postfix configuration (see below), you probably need to add: protocol lda { mail_plugins = $mail_plugins sieve } In postfix I have home_mailbox = Maildir/ You need to configure Postfix to use local delivery agent (LDA) which supports sieve, such as Dovecot's LDA with sieve plugin. Have a look at: http://wiki.dovecot.org/LDA/Postfix the problem is that the script does not run and so the mail is delivered the initial recipient. I use LDAP to delivery the mail. any idea. Thank you. Hope this helps. -- Janne Snabb / EPIPE Communications sn...@epipe.com - http://epipe.com/
[Dovecot] Sieve script does not run in dovecot 2.0 on squeeze
Hi, I want to use Sieve filtering with my Dovecot 2.0.20 installation on Debian squeeze. ManageSieve works fine so far, I can edit and activate/deactive scripts (using Thunderbird + Plugin) and they show up in the filesystem where I expect them to be, see below. # ls -la /home/k200/ total 16 drwxr-xr-x 4 k200 mail 4096 Apr 30 10:46 . drwxr-xr-x 4 root root 4096 Apr 24 17:04 .. drwx-- 7 k200 Domain Users 4096 Apr 30 10:56 Maildir lrwxrwxrwx 1 k200 Domain Users 21 Apr 30 10:46 currently-active-script.sieve - sieve/outoffice.sieve drwxr-xr-x 3 k200 mail 4096 May 2 16:44 sieve ls -la /home/k200/sieve/ total 16 drwxr-xr-x 3 k200 mail 4096 May 2 16:44 . drwxr-xr-x 4 k200 mail 4096 Apr 30 10:46 .. -rw-r--r-- 1 k200 mail 36 Apr 26 17:21 outoffice.sieve drwxr-xr-x 2 k200 Domain Users 4096 May 2 16:44 tmp #less outoffice.sieve redirect u...@dominio.uk; In dovecot.conf I have mail_location = maildir:~/Maildir plugin { quota = dirsize sieve=~/currently-active-script.sieve sieve_dir=~/sieve sieve_storage=~/sieve } protocols = imap sieve protocol sieve { managesieve_logout_format = bytes ( in=%i : out=%o ) } service managesieve-login { user = dovecot inet_listener sieve { port = 4190 } process_limit = 2000 } userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } In postfix I have home_mailbox = Maildir/ the problem is that the script does not run and so the mail is delivered the initial recipient. I use LDAP to delivery the mail. any idea. Thank you. Th. Victor Oñate
[Dovecot] sieve against ldap in Dovecot 1.2 vacation messeage
Hi. I need configure sieve against ldap this is my file configuration dovecot.conf plugin { quota = dirsize:user sieve_dir = ~/sieve } protocol lda { mail_plugins = sieve } auth default { mechanisms = plain passdb pam { } userdb ldap { args = /etc/dovecot/dovecot-ldap.conf } user = nobody } I dont know what I have to put in dovecot-ldap.conf, ofcourse I have a atribut in LDAP by user with a vacation messeage I'm out of office, please contact Mr. Black this is dovecot-ldap.conf hosts = server auth_bind = yes ldap_version = 3 base = dc=dominio,dc=uk deref = never scope = subtree user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,mail=Maildir,mailQuotaSize=quota_rule=*:storage=%$ user_filter = ((objectClass=posixAccount)(uid=%u)) The principal idea is keep the control the message by user with LDAP and Dovecot(IMAP). without touching the postfix configuration file is that possible, or am I dreaming. Thanks.. Victor Oñate.
Re: [Dovecot] Question about imaps
Try to conect from shell # telnet server 993 2011/11/21 Joe Giles jgi...@cybermesa.com: On Monday, November 21, 2011 01:20:55 PM Jerry wrote: On Mon, 21 Nov 2011 09:40:02 -0700 (MST) jgi...@cybermesa.com articulated: On Mon, November 21, 2011 8:44 am, jgi...@cybermesa.com wrote: Hi List! Had a questions about imap vs. imaps. I read the ssl article at http://wiki2.dovecot.org/SSL and from what I am reading, imaps is no longer needed as imap with initiate SSL/TLS on its own if STARTTLS is started and I have disable_plaintext_auth=yes and ssl=required settings. I do have SSL up and working, and can connect using imap (143) to my server without issue, but was not able to connect using imaps (993) using Kmail as my client. I Was getting a client error stating that the authentication failed using my password. However, there was nothing in the mail.err or mail.log file even when I enable debugging. If I specify imaps as my only protocol, then dovecot fails to even start without any error loging at all. As I stated, imap works just fine. So, is imaps deprecated as mentioned in the article and imaps no longer needed? I am running Dovecot 2.0.13 on an Ubuntu 11.10 64bit server. This server is simply an imap serer and not a MTA (No postfix or sendmail installed.) Thanks! Joe LOL, replying to my own e-mail... I just discovered that the problem is most likely in my Kmail 2 client. Tried to connect using the following: openssl s_client -connect mymailserver.com:993 I was able to connect, log in, and get information about my mail folders. Will try Thunderbird when I get home from work. Kmail 2 is still a WIP I guess. That said, I am still reading that imap with starttls is the way to go, so might be a moot issue. Thanks! Joe Try this: (substitute your actual host for remote.host) openssl s_client -connect remote.host:143 -starttls imap See if you get a connection. If so, then the server offers STARTTLS. Hi, Jerry, Thanks for the information. Yes, I ran that command and got my cert and other information proving to me that TLS is working. I was also able to log in and get mailbox information. Thanks again! Joe