<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1256"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Christopher,<div><br></div><div>The default amavisd-new set-up should work just fine, without using any milter.</div><div><br></div><div>Have a look at the following documentation:</div><div>- <a href="http://www.amavis.org/README.postfix.html">http://www.amavis.org/README.postfix.html</a></div><div>- <a href="http://www.postfix.org/FILTER_README.html">http://www.postfix.org/FILTER_README.html</a> [Advanced content filter example]</div><div><br></div><div>A quick run through the config files [this is a quick cut-and-paste from my config files; beware that the port numbers might not match the above documents]:</div><div><br></div><div>/etc/amavisd.conf</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">$notify_method  = 'smtp:[127.0.0.1]:<span style="color: #ffffff; background-color: #000000">10025</span>';</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">$forward_method = 'smtp:[127.0.0.1]:<span style="color: #ffffff; background-color: #000000">10025</span>';</div></div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><div style="margin: 0px;">$inet_socket_port = [<span style="color: #ffffff; background-color: #000000">10024</span>, 10026];</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px;">$interface_policy{'10026'} = 'ORIGINATING';</div><div style="margin: 0px; min-height: 13px;"><br></div><div style="margin: 0px;">$policy_bank{'ORIGINATING'} = {  # mail supposedly originating from our users</div><div style="margin: 0px;">  originating => 1,  # declare that mail was submitted by our smtp client</div><div style="margin: 0px;">  allow_disclaimers => 1,  # enables disclaimer insertion if available</div><div>}</div><div><br></div><div>/etc/postfix/master.cf</div></div></div></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">smtp      inet  n       -       n       -       -       smtpd</div></div><div><span style="font-family: Menlo; font-size: 11px;">  -o content_filter = smtp-amavis:[127.0.0.1]:10024</span></div><div><span style="font-family: Menlo; font-size: 11px;"><br></span></div><div><font face="Menlo"><span style="font-size: 11px;">[ you can also have the above config_filter configuration in /etc/postfix/main.cf as a default setting.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">  The options below override the defaults in main.cf ]</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">smtp-amavis unix -      -       n       -       4       smtp</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtp_data_done_timeout=1200</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtp_send_xforward_command=yes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o disable_dns_lookups=yes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o max_use=20</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtp_generic_maps=</div></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">localhost:10025 inet n  -       n       -       -       smtpd</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o content_filter=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o local_recipient_maps=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o relay_recipient_maps=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_delay_reject=no</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_authorized_xforward_hosts=127.0.0.0/8,[::1]/128</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_authorized_xclient_hosts=127.0.0.0/8,[::1]/128</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_client_restrictions=permit_mynetworks,reject</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_helo_restrictions=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_sender_restrictions=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_recipient_restrictions=permit_mynetworks,reject</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_data_restrictions=reject_unauth_pipelining</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_end_of_data_restrictions=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_restriction_classes=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o mynetworks=127.0.0.0/8,[::1]/128</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_error_sleep_time=0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_soft_error_limit=1001</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_hard_error_limit=1000</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_client_connection_count_limit=0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_client_connection_rate_limit=0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o local_header_rewrite_clients=</div></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">submission inet n       -       n       -       -       smtpd</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o syslog_name=postfix/submission</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_tls_security_level=encrypt</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_sasl_auth_enable=yes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_client_restrictions=permit_sasl_authenticated,reject</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o content_filter=smtp-amavis:[127.0.0.1]:10026</div></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">pickup    unix  n       -       n       60      1       pickup</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  -o content_filter=smtp-amavis:[127.0.0.1]:10026</div></div><div><br></div><div>Quick comments:</div><div>- incoming e-mail enters on port 25; with the “content-filter” option, it is sent to a mavis on port 10024</div><div>- amavis scans, tags, quarantines, … — if mail goes through, it goes to (postfix) port 10025 (this is done with the “$forward_method” in amavisd.conf)</div><div>- postfix (listening on port 10025) delivers the e-mail</div><div><br></div><div>- outgoing e-mail should enter on the submission port [587] or delivered with the pickup service (“local e-mail”).</div><div>- postfix forwards this e-mail to amavis on port 10026 (!)</div><div>- the configuration of amavis is changed because of a “policy bank”</div><div>- again, amavis forwards e-mail to postfix on port 10025</div><div>- postfix (listening on port 10025) delivers e-mail</div><div><br></div><div>Kind regards,</div><div><br></div><div>Stef</div><div><br><div><div>Op 4-aug.-2014, om 19:33 heeft Christopher Kent <<a href="mailto:chriskent_developer@hotmail.co.uk">chriskent_developer@hotmail.co.uk</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">Hi Andreas,<br><br>Thanks a lot for your time and response- hope you had a good weekend!<br><br>I understand that I may be pushing my luck, but do you please know of a method to add signatures/modify the body of mails sent from local accounts?<br><br>Thanks!<br><br>><span class="Apple-converted-space"> </span>Date: Sat, 2 Aug 2014 15:37:33 +0200<br>><span class="Apple-converted-space"> </span>From:<span class="Apple-converted-space"> </span><a href="mailto:sca@andreasschulze.de">sca@andreasschulze.de</a><br>><span class="Apple-converted-space"> </span>To:<span class="Apple-converted-space"> </span><a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a><br>><span class="Apple-converted-space"> </span>Subject: Re: Filter works great, Milter does not (despite log shows actions performed)ž<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> Christopher Kent:<br>><span class="Apple-converted-space"> </span><br>> > I guess this is a permissions issue, or is there a<span class="Apple-converted-space"> </span><br>> > config/restriction within amavisd-milter or amavisd-new?&nbsp;<br>><span class="Apple-converted-space"> </span>changing the message body is not implemented via milter interface<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span>Andreas<br>></div></div></blockquote></div><br></div></body></html>