Reviewed: allow.user.to.send.email.without.authentication.md, recalculate.mailbox.quota.md.
This commit is contained in:
parent
53605786a0
commit
16b173c5c4
|
@ -1,26 +1,29 @@
|
|||
<http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Allow.User.to.Send.Email.without.Authentication>
|
||||
# How to allow user to send email without authentication
|
||||
|
||||
[TOC]
|
||||
## Create a plain text file:
|
||||
`/etc/postfix/accepted_unauth_senders`:
|
||||
|
||||
Create a plain text file: `/etc/postfix/accepted_unauth_senders`:
|
||||
|
||||
<pre>
|
||||
fax-machine-12@mydomain.tld OK
|
||||
</pre>
|
||||
|
||||
## Use postmap to create hash db file:
|
||||
Use postmap to create hash db file:
|
||||
|
||||
<pre>
|
||||
# postmap hash:/etc/postfix/accepted_unauth_senders```
|
||||
</pre>
|
||||
|
||||
## Modify Postfix to use this text file:
|
||||
`/etc/postfix/main.cf`
|
||||
Modify Postfix to use this text file: `/etc/postfix/main.cf`
|
||||
|
||||
<pre>
|
||||
smtpd_sender_restrictions =
|
||||
check_sender_access hash:/etc/postfix/accepted_unauth_senders,
|
||||
[...OTHER RESTRICTIONS HERE...]
|
||||
</pre>
|
||||
|
||||
## Restart/reload postfix to make it work:
|
||||
Restart/reload postfix to make it work:
|
||||
|
||||
<pre>
|
||||
# /etc/init.d/postfix restart
|
||||
</pre>
|
||||
|
|
|
@ -1,30 +1,25 @@
|
|||
<http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Recalculate.Mailbox.Quota>
|
||||
# How to recalculate mailbox quota
|
||||
[TOC]
|
||||
# How to force Dovecot to recalculate mailbox quota
|
||||
|
||||
iRedMail enables dict quota since v0.7.0, dict quota is recalculated only if the quota goes below zero.
|
||||
iRedMail enables dict quota since iRedMail-0.7.0, dict quota is recalculated
|
||||
only if the quota goes below zero
|
||||
|
||||
* For MySQL and PostgreSQL backend:
|
||||
|
||||
<pre>
|
||||
#
|
||||
# ---- For iRedMail-0.7.4 and later versions ----
|
||||
#
|
||||
mysql> USE vmail;
|
||||
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
|
||||
|
||||
#
|
||||
# ---- For iRedMail-0.7.3 and earlier versions ----
|
||||
#
|
||||
mysql> USE vmail;
|
||||
mysql> UPDATE mailbox SET bytes=-1,messages=-1 WHERE username='user@domain.ltd';
|
||||
</pre>
|
||||
|
||||
* For OpenLDAP backend:
|
||||
|
||||
<pre>
|
||||
mysql> USE iredadmin;
|
||||
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
|
||||
</pre>
|
||||
|
||||
Re-login to webmail will get correct quota size.
|
||||
Re-login via POP3/IMAP (or webmail) will trigger Dovecot to recalculate mailbox
|
||||
quota.
|
||||
|
||||
If there're records for non-exist mail users in table ```used_quota```, please delete them.
|
||||
__TIP__: it's safe to delete records in SQL table `used_quota` if mail user
|
||||
was deleted in table `vmail.mailbox` or LDAP. iRedAdmin-Pro will handle this
|
||||
for you automatically.
|
||||
|
|
|
@ -59,7 +59,8 @@ for chapter_dir in ${all_chapter_dirs}; do
|
|||
|
||||
if [ -f ${_title_md} ]; then
|
||||
# generate index info of chapter
|
||||
echo "# $(cat ${_title_md})" >> ${INDEX_MD}
|
||||
_chapter_title="$(cat ${_title_md})"
|
||||
echo "# ${_chapter_title}" >> ${INDEX_MD}
|
||||
|
||||
if [ -f ${_summary_md} ]; then
|
||||
echo -e "\n\n" >> ${INDEX_MD}
|
||||
|
@ -89,7 +90,7 @@ for chapter_dir in ${all_chapter_dirs}; do
|
|||
#echo "article title: ${_article_title}"
|
||||
echo "* [${_article_title}](${chapter_dir_in_article}/${article_html_file})" >> ${INDEX_MD}
|
||||
|
||||
${CMD_CONVERT} ${article_file} ${_output_chapter_dir}
|
||||
${CMD_CONVERT} ${article_file} ${_output_chapter_dir} title="${_article_title}"
|
||||
done
|
||||
done
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title>How to migrate old iRedMail server to the latest stable release</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title> How to allow user to send email without authentication
</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1 id="how-to-allow-user-to-send-email-without-authentication">How to allow user to send email without authentication</h1>
|
||||
<div class="toc">
|
||||
<ul>
|
||||
<li><a href="#how-to-allow-user-to-send-email-without-authentication">How to allow user to send email without authentication</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>Create a plain text file: <code>/etc/postfix/accepted_unauth_senders</code>:</p>
|
||||
<pre>
|
||||
fax-machine-12@mydomain.tld OK
|
||||
</pre>
|
||||
|
||||
<p>Use postmap to create hash db file:</p>
|
||||
<pre>
|
||||
# postmap hash:/etc/postfix/accepted_unauth_senders```
|
||||
</pre>
|
||||
|
||||
<p>Modify Postfix to use this text file: <code>/etc/postfix/main.cf</code></p>
|
||||
<pre>
|
||||
smtpd_sender_restrictions =
|
||||
check_sender_access hash:/etc/postfix/accepted_unauth_senders,
|
||||
[...OTHER RESTRICTIONS HERE...]
|
||||
</pre>
|
||||
|
||||
<p>Restart/reload postfix to make it work:</p>
|
||||
<pre>
|
||||
# /etc/init.d/postfix restart
|
||||
</pre></body></html>
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> Amavisd + SpamAssassin not working, no mail header (X-Spam-*) inserted.</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to completely disable amavisd/ClamAV/SpamAssassin</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to disable spam virus scanning for outgoing mails</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to enable SMTPS service (SMTP over SSL, port 465)</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to pipe incoming email for certain user to external script </title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title> How to force Dovecot to recalculate mailbox quota
</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1 id="how-to-force-dovecot-to-recalculate-mailbox-quota">How to force Dovecot to recalculate mailbox quota</h1>
|
||||
<p>iRedMail enables dict quota since iRedMail-0.7.0, dict quota is recalculated
|
||||
only if the quota goes below zero</p>
|
||||
<ul>
|
||||
<li>For MySQL and PostgreSQL backend:</li>
|
||||
</ul>
|
||||
<pre>
|
||||
mysql> USE vmail;
|
||||
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
|
||||
</pre>
|
||||
|
||||
<ul>
|
||||
<li>For OpenLDAP backend:</li>
|
||||
</ul>
|
||||
<pre>
|
||||
mysql> USE iredadmin;
|
||||
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';
|
||||
</pre>
|
||||
|
||||
<p>Re-login via POP3/IMAP (or webmail) will trigger Dovecot to recalculate mailbox
|
||||
quota.</p>
|
||||
<p><strong>TIP</strong>: it's safe to delete records in SQL table <code>used_quota</code> if mail user
|
||||
was deleted in table <code>vmail.mailbox</code> or LDAP. iRedAdmin-Pro will handle this
|
||||
for you automatically.</p></body></html>
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to store spamassassin bayes in SQL</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to perform silent/unattended iRedMail installation</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to use or migrate password hashes</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -8,12 +8,16 @@
|
|||
<body>
|
||||
<h1 id="frequently-asked-questions-and-howto-documents">Frequently Asked Questions and Howto documents</h1>
|
||||
<ul>
|
||||
<li><a href="faq-howto/allow.user.to.send.email.without.authentication.html"> How to allow user to send email without authentication
|
||||
</a></li>
|
||||
<li><a href="faq-howto/amavisd.no.x-spam.headers.html"> Amavisd + SpamAssassin not working, no mail header (X-Spam-*) inserted.</a></li>
|
||||
<li><a href="faq-howto/completely.disable.amavisd.clamav.spamassassin.html"> How to completely disable amavisd/ClamAV/SpamAssassin</a></li>
|
||||
<li><a href="faq-howto/disable.spam.virus.scanning.for.outgoing.mails.html"> How to disable spam virus scanning for outgoing mails</a></li>
|
||||
<li><a href="faq-howto/howto.configure.thunderbird.for.iredmail.html"> Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)</a></li>
|
||||
<li><a href="faq-howto/howto.enable.smtps.service.html"> How to enable SMTPS service (SMTP over SSL, port 465)</a></li>
|
||||
<li><a href="faq-howto/pipe.incoming.email.for.certain.user.to.external.script.html"> How to pipe incoming email for certain user to external script </a></li>
|
||||
<li><a href="faq-howto/recalculate.mailbox.quota.html"> How to force Dovecot to recalculate mailbox quota
|
||||
</a></li>
|
||||
<li><a href="faq-howto/store.spamassassin.bayes.in.sql.html"> How to store spamassassin bayes in SQL</a></li>
|
||||
<li><a href="faq-howto/unattended.iredmail.installation.html"> How to perform silent/unattended iRedMail installation</a></li>
|
||||
<li><a href="faq-howto/use.or.migrate.password.hashes.html"> How to use or migrate password hashes</a></li>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
<title> How to turn on debug mode in Dovecot</title>
|
||||
<link href="../css/markdown.css" rel="stylesheet"></head>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -36,7 +36,8 @@ if not 'css' in cmd_opts:
|
|||
cmd_opts['css'] = '../css/markdown.css'
|
||||
|
||||
# Get article title
|
||||
cmd_opts['title'] = commands.getoutput("""grep 'Title:' %s |awk -F'Title: ' '{print $2}'""" % filename)
|
||||
if not 'title' in cmd_opts:
|
||||
cmd_opts['title'] = commands.getoutput("""grep 'Title:' %s |awk -F'Title: ' '{print $2}'""" % filename)
|
||||
|
||||
# Set HTML head
|
||||
html = """\
|
||||
|
|
Loading…
Reference in New Issue