aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2011-09-09 16:25:34 -0300
committermarcelloc <marcellocoutinho@gmail.com>2011-09-09 16:25:34 -0300
commita00d0eafe06470632439a6f107144d815e375355 (patch)
tree61ef59fe8b7a741b070a6d4b9e0f0c4f6b616297
parentac8820acaee3980fffefd29e9322b6889c522ccb (diff)
downloadpfsense-packages-a00d0eafe06470632439a6f107144d815e375355.tar.gz
pfsense-packages-a00d0eafe06470632439a6f107144d815e375355.tar.bz2
pfsense-packages-a00d0eafe06470632439a6f107144d815e375355.zip
update postfix to 2.8.5
fix postfix missing user argument at master.cf
-rw-r--r--config/postfix/postfix.inc30
-rw-r--r--pkg_config.8.xml6
-rw-r--r--pkg_config.8.xml.amd646
3 files changed, 20 insertions, 22 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc
index 5577f4d5..cdfc50e3 100644
--- a/config/postfix/postfix.inc
+++ b/config/postfix/postfix.inc
@@ -59,7 +59,7 @@ function sync_relay_recipients($via_cron="cron"){
if($postfix_recipients_config['enable_ldap']){
#validate cront job
if(preg_match("/(\d+)(\w)/",$postfix_recipients_config['freq'],$matches)){
- $cron_sufix="\t*\t*\troot\t/usr/local/bin/php /usr/local/www/postfix_recipients.php";
+ $cron_sufix="\t*\t*\troot\t/usr/local/bin/php /usr/local/www/postfix_recipientes.php";
switch ($matches[2]){
case m:
$cron= "*/".$matches[1]."\t*\t*".$cron_sufix;
@@ -76,9 +76,9 @@ function sync_relay_recipients($via_cron="cron"){
#update cront job file
$crontab = file('/etc/crontab');
foreach ($crontab as $line)
- $new_cron.=(preg_match("/postfix_recipients.php/",$line)?$cron."\n":$line);
+ $new_cron.=(preg_match("/postfix_recipientes.php/",$line)?$cron."\n":$line);
#include if conf does not exist in crontab
- $new_cron.=(!preg_match("/postfix_recipients.php/",$new_cron)?"\n".$cron."\n\n":"");
+ $new_cron.=(!preg_match("/postfix_recipientes.php/",$new_cron)?"\n".$cron."\n\n":"");
file_put_contents("/etc/crontab",$new_cron, LOCK_EX);
#check crontab changes
$md5_new_file = trim(md5_file('/etc/crontab'));
@@ -139,12 +139,12 @@ function sync_relay_recipients($via_cron="cron"){
}
}
#save all relay recipients and reload postfix
- file_put_contents("/usr/local/etc/postfix/relay_recipients",$relay_ldap_recipients."\n".$relay_recipients, LOCK_EX);
- exec("/usr/local/sbin/postmap /usr/local/etc/postfix/relay_recipients");
+ file_put_contents("/usr/local/etc/postfix/relay_recipientes",$relay_ldap_recipients."\n".$relay_recipients, LOCK_EX);
+ exec("/usr/local/sbin/postmap /usr/local/etc/postfix/relay_recipientes");
mwexec("/usr/local/sbin/postfix reload");
}
if($relay_recipients !="" || $relay_ldap_recipients!="")
- return("relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients\n");
+ return("relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipientes\n");
}
function sync_package_postfix() {
global $config;
@@ -414,22 +414,22 @@ switch ($antispam['zombie_blocker'])
$postfix_main.='postscreen_greet_wait = ${stress?'.$greet[1].'}${stress:'.$greet[2].'}'.$greet[3]."\n";
}
$ag=$antispam['after_greeting'];
- if($ag["postscreen_disable_vrfy_command"]){
+ if(preg_match("/postscreen_disable_vrfy_command/",$antispam['after_greeting'])){
$postfix_main.="postscreen_disable_vrfy_command = yes\n";
}
- if($ag["postscreen_non_smtp_command_enable"]){
+ if(preg_match("/postscreen_non_smtp_command_enable/",$antispam['after_greeting'])){
$postfix_main.="postscreen_non_smtp_command_enable = yes\n";
$postfix_main.="postscreen_non_smtp_command_action = ".$antispam['zombie_blocker']."\n";
}
- if($ag["postscreen_pipelining_enable"]){
+ if(preg_match("/postscreen_pipelining_enable/",$antispam['after_greeting'])){
$postfix_main.="postscreen_pipelining_enable = yes\n";
$postfix_main.="postscreen_pipelining_action = ".$antispam['zombie_blocker']."\n";
}
- if($ag["postscreen_bare_newline_enable"]){
+ if(preg_match("/postscreen_bare_newline_enable/",$antispam['after_greeting'])){
$postfix_main.="postscreen_bare_newline_enable = yes\n";
$postfix_main.="postscreen_bare_newline_action = ".$antispam['zombie_blocker']."\n";
}
- if($ag["postscreen_greet_check"]){
+ if(preg_match("/postscreen_greet_check/",$antispam['after_greeting'])){
$postfix_main.="postscreen_greet_action = ".$antispam['zombie_blocker']."\n";
}
@@ -444,8 +444,8 @@ switch ($antispam['zombie_blocker'])
foreach (explode(",", $ifaces) as $i => $iface) {
$real_ifaces[] = px_get_real_interface_address($iface);
if($real_ifaces[$i][0]) {
- $postfix_master .=$real_ifaces[$i][0].":25 inet n - n - 1 postscreen\n";
- $postfix_master .=($antispam['soft_bounce'] == "postscreen"?" -o soft_bounce=yes\n":"");
+ $postfix_master .=$real_ifaces[$i][0].":25 inet n - n - 1 postscreen\n\t-o user=postfix\n";
+ $postfix_master .=($antispam['soft_bounce'] == "postscreen"?"\t-o soft_bounce=yes\n":"");
}
}
$postfix_master .= $postfix_inets.<<<MASTEREOF
@@ -481,7 +481,7 @@ MASTEREOF;
foreach (explode(",", $ifaces) as $i => $iface) {
$real_ifaces[] = px_get_real_interface_address($iface);
if($real_ifaces[$i][0]) {
- $postfix_master .=$real_ifaces[$i][0].":25 inet n - n - 1 smtpd\n";
+ $postfix_master .=$real_ifaces[$i][0].":25 inet n - n - 1 smtpd\n\t-o user=postfix\n";
}
}
@@ -515,8 +515,6 @@ anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
spf unix - n n - - spawn
user=nobody argv=/usr/local/sbin/postfix-policyd-spf
-# -o user=nobody
-# -o argv=/usr/local/sbin/postfix-policyd-spf
MASTEREOF2;
diff --git a/pkg_config.8.xml b/pkg_config.8.xml
index 8dd90339..b8bfdc50 100644
--- a/pkg_config.8.xml
+++ b/pkg_config.8.xml
@@ -376,13 +376,13 @@
<category>Services</category>
<config_file>http://www.pfsense.com/packages/config/postfix/postfix.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/8/All/</depends_on_package_base_url>
- <depends_on_package>postfix-2.8.4,1.tbz</depends_on_package>
- <version>2.8.4,1 pkg v.2.0</version>
+ <depends_on_package>postfix-2.8.5,1.tbz</depends_on_package>
+ <version>2.8.5,1 pkg v.2.0.1</version>
<status>Beta</status>
<required_version>2.0</required_version>
<configurationfile>postfix.xml</configurationfile>
<build_port_path>/usr/ports/mail/postfix</build_port_path>
- <build_options>WITHOUT_PCRE=false</build_options>
+ <build_options>WITH_PCRE=true</build_options>
</package>
<package>
<name>siproxd</name>
diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64
index 998fa479..a14a8f49 100644
--- a/pkg_config.8.xml.amd64
+++ b/pkg_config.8.xml.amd64
@@ -431,13 +431,13 @@
<category>Services</category>
<config_file>http://www.pfsense.com/packages/config/postfix/postfix.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/amd64/8/All/</depends_on_package_base_url>
- <depends_on_package>postfix-2.8.4,1.tbz</depends_on_package>
- <version>2.8.4,1 pkg v.2.0</version>
+ <depends_on_package>postfix-2.8.5,1.tbz</depends_on_package>
+ <version>2.8.5,1 pkg v.2.0.1</version>
<status>Beta</status>
<required_version>2.0</required_version>
<configurationfile>postfix.xml</configurationfile>
<build_port_path>/usr/ports/mail/postfix</build_port_path>
- <build_options>WITHOUT_PCRE=false</build_options>
+ <build_options>WITH_PCRE=true</build_options>
</package>
<package>
<name>siproxd</name>