Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Failed to log in to the mail server page. Modify postfix and dovecot parameters. Login failed if the number of imap processes exceeds 100.

2025-04-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Previously on:

Recently, a set of mail server and WebMail with web access have been deployed, and login failures are often encountered in the login process.

The solution is as follows:

After checking the system, it is found that the resource usage of the server and the network are normal. It is found that the mail is connected through imap. When the number of processes in imap exceeds 100, the possibility of interface login failure is very high. Then restart the dovecot service, you can log in, and the number of imap connection processes is also reduced by less than 100.

Find the alarm prompt under dovecot.log, and view the configuration file / etc/dovecot/dovecot.conf in the log path. The configured path here is log_path = / var/log/dovecot.log.

Master: Warning: service (imap-login): process_limit (100) reached, client connections are being dropped

Master: Warning: service (imap-login): process_limit (100) reached, client connections are being dropped

Master: Warning: service (imap-login): process_limit (100) reached, client connections are being dropped

So by checking, it modifies the number of dovecot processes:

1. Dovecot-a to view its parameters

Use the command vim / etc/dovecot/dovecot.conf to modify the number of dovecot processes:

Add (modify if present) process_limit = 500under service imap-login, and adjust the parameters of the period as needed.

Service imap-login {

Inet_listener imap {

# port=0

Port = 143,

}

Inet_listener imaps {

# port = 993

# ssl = yes

}

Process_limit = 500,

}

Add (modify if present) under service imap process_limit = 204800

Service imap {

# Most of the memory goes to mmap () ing files. You may need to increase this

# limit if you have huge mailboxes.

# vsz_limit = $default_vsz_limit

# Max. Number of IMAP processes (connections)

# process_limit = 1024

Process_limit = 204800

}

Add (modify if present) under service pop3 process_limit = 204800

Service pop3 {

# Max. Number of POP3 processes (connections)

# process_limit = 1024

Process_limit = 204800

}

Add (modify if present) under protocol imap mail_max_userip_connections = 20480

Protocol imap {

# Space separated list of plugins to load (default is global mail_plugins).

# mail_plugins = $mail_plugins

Mail_plugins = quota imap_quota

Imap_client_workarounds = tb-extra-mailbox-sep

Mail_max_userip_connections = 20480

}

Restart the dovecot command:

Service dovecot restart

2. Check whether there is a default_process_limit parameter in / etc/postfix/main.cf. If not, add it. If so, modify default_process_limit = 500.

Restart postfix command: service postfix restart

Then track whether the error prompt for webmail login will appear again.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report