postfix
This commit is contained in:
parent
7c29937da7
commit
bc6801c407
|
@ -154,14 +154,24 @@ Modifier une unité
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Postfix</h2>
|
<section>
|
||||||
# apt install postfix
|
<h2>Postfix</h2>
|
||||||
|
</section>
|
||||||
Configuration process : /etc/postfix/master.cf
|
<section>
|
||||||
Configuration options : /etc/postfix/main.cf
|
<h3>Installation</h3>
|
||||||
|
<pre><code data-trim class="hljs nohighlight">
|
||||||
# vim main.cf
|
# apt install postfix
|
||||||
|
</code></pre>
|
||||||
|
<h3>Configuration</h3>
|
||||||
|
<ul>
|
||||||
|
<li>process : /etc/postfix/master.cf</li>
|
||||||
|
<li>options : /etc/postfix/main.cf</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<pre>
|
||||||
|
<code># vim main.cf</code>
|
||||||
|
<code data-trim style="max-height: 500px">
|
||||||
smtpd_banner = $myhostname ESMTP mail server
|
smtpd_banner = $myhostname ESMTP mail server
|
||||||
biff = no
|
biff = no
|
||||||
append_dot_mydomain = no
|
append_dot_mydomain = no
|
||||||
|
@ -177,7 +187,12 @@ recipient_delimiter = +
|
||||||
inet_interfaces = all
|
inet_interfaces = all
|
||||||
inet_protocols = ipv4
|
inet_protocols = ipv4
|
||||||
disable_vrfy_command = yes
|
disable_vrfy_command = yes
|
||||||
|
</code></pre>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<pre>
|
||||||
|
<code class="hljs nohighlight" data-trim style="max-height: 500px">
|
||||||
# date | mail -s test jdoe@example.com
|
# date | mail -s test jdoe@example.com
|
||||||
# mailq
|
# mailq
|
||||||
# qshape deferred
|
# qshape deferred
|
||||||
|
@ -187,7 +202,10 @@ disable_vrfy_command = yes
|
||||||
# postsuper -r < queue_id >
|
# postsuper -r < queue_id >
|
||||||
# postsuper -r ALL
|
# postsuper -r ALL
|
||||||
|
|
||||||
# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /example\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
|
# mailq | tail -n +2 | \
|
||||||
|
awk 'BEGIN { RS = "" } /example\.com$/ { print $1 }' | \
|
||||||
|
tr -d '*!' | postsuper -d -
|
||||||
|
</code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
Loading…
Reference in a new issue