Sudden degradation in Postfix performance.

2014-12-21 Thread Jonathan K. Tullett
Greetings, I've been using Postfix for many years - since about 2002 - and I've finally come across a problem I've not been able to resolve by searching online, or from tapping into my personal network. So I have come to you all for help. I have two machines: Machine A: My primary 8 core Xeon 2.2

Re: Sudden degradation in Postfix performance.

2014-12-21 Thread Christian Rößner
> Am 21.12.2014 um 10:13 schrieb Jonathan K. Tullett > : > > Greetings, > > I've been using Postfix for many years - since about 2002 - and I've finally > come across a problem I've not been able to resolve by searching online, or > from tapping into my personal network. So I have come to you

A transport maps dilema

2014-12-21 Thread Istvan Prosinger
Hello, Is it possibble to make Postfix relay to some specific domain using a specific relay, and relay all the other domains by default rules (put the mail to an inbox if local or relay outbound by the given restrictions etc)? I guess it'd involve a transport_maps pointer in the main.cf to a

Re: A transport maps dilema

2014-12-21 Thread li...@rhsoft.net
Am 21.12.2014 um 13:53 schrieb Istvan Prosinger: Is it possibble to make Postfix relay to some specific domain using a specific relay, and relay all the other domains by default rules (put the mail to an inbox if local or relay outbound by the given restrictions etc)? I guess it'd involve a tra

Re: A transport maps dilema

2014-12-21 Thread Jose Borges Ferreira
You allmost got it. Transport_map is used to override the default transport and the ones you don't want to override just left out. Just take the * and that should work as you intended. José Borges Ferreira On Dec 21, 2014 12:55 PM, "Istvan Prosinger" wrote: > Hello, > > Is it possibble to make P

Re: Sudden degradation in Postfix performance.

2014-12-21 Thread Wietse Venema
Christian R??ner: > Prior to the last week of October using the distribution manager, > it was possible on machine A to inject around 25 messages (full > size - about 70k each) a second into the maildrop queue. > > Since the end of October, that number has dropped to 16 a second > on a good day. W

Re: A transport maps dilema

2014-12-21 Thread Wietse Venema
Istvan Prosinger: > Hello, > > Is it possibble to make Postfix relay to some specific domain using a > specific relay, and relay all the other domains by default rules (put > the mail to an inbox if local or relay outbound by the given > restrictions etc)? > > I guess it'd involve a transport_

Re: Sudden degradation in Postfix performance.

2014-12-21 Thread Noel Jones
On 12/21/2014 3:13 AM, Jonathan K. Tullett wrote: > Greetings, > > I've been using Postfix for many years - since about 2002 - and I've > finally come across a problem I've not been able to resolve by > searching online, or from tapping into my personal network. So I > have come to you all for hel

Re: One user per domain and sender management

2014-12-21 Thread postfix-nabble
Am 20.12.2014 um 20:44 schrieb nh: I have a postfix/dovecot server, and I want to have one account per domain, ie. : *@Domain1.tld <-> User1 (+ sender only users (only "[hidden email] " in example), like php mail function) *@Domain2.tld <-> User2 *@Domain3.tld <-> User3 *@Domain4.tld <-> Use

smtpd_sasl_path ignores native DNS lookups?

2014-12-21 Thread Patrick Ben Koetter
Could it be smtpd_sasl_path ignores local (native) lookups even if I specified native lookup for smtp/lmtp client like this in main.cf: smtp_host_lookup = native, dns lmtp_host_lookup = native, dns This works: smtpd_sasl_path = inet:192.168.6.100:12345 Using a hostname set in /etc/hosts e.g. vl

Re: smtpd_sasl_path ignores native DNS lookups?

2014-12-21 Thread Wietse Venema
Patrick Ben Koetter: > smtp_host_lookup = native, dns > lmtp_host_lookup = native, dns Those are SMTP (and LMTP) client settings. Thanks to Postfix's architecture, those settings do not change how the SMTP server works. > This works: > smtpd_sasl_path = inet:192.168.6.100:12345 That looks like D

Re: One user per domain and sender management

2014-12-21 Thread nh
I changed following lines : myhostname = local.mailhost mydestination = $myhostname, localhost.$mydomain, $mydomain smtpd_sender_restrictions=reject_sender_login_mismatch,reject_authenticated_sender_login_mismatch virtual_alias_domains = domain1.tld domain2.tld domain3.tld domais4.tld And I can se

Re: One user per domain and sender management

2014-12-21 Thread li...@rhsoft.net
Am 21.12.2014 um 17:24 schrieb nh: I changed following lines : myhostname = local.mailhost mydestination = $myhostname, localhost.$mydomain, $mydomain smtpd_sender_restrictions=reject_sender_login_mismatch,reject_authenticated_sender_login_mismatch virtual_alias_domains = domain1.tld domain2.tld

Re: One user per domain and sender management

2014-12-21 Thread Koko Wijatmoko
On Sun, 21 Dec 2014 09:24:05 -0700 (MST) nh wrote: > virtual_alias_domains = domain1.tld domain2.tld domain3.tld > domais4.tld > you must have virtual_alias_maps in your main.cf, look here for details... http://www.postfix.org/VIRTUAL_README.html

Re: One user per domain and sender management

2014-12-21 Thread postfix-nabble
If you see the file main.cf I sent before, I already have this line : virtual_alias_maps = hash:/etc/postfix/virtual file /etc/postfix/virtual contains : @domain2.tld user2 @domain1.tld user1 @domain4.tld user2 @domain3.tld user1 Users "user1" and "user2" are knew by my server (raspian), and I c

Re: Sudden degradation in Postfix performance.

2014-12-21 Thread Viktor Dukhovni
On Sun, Dec 21, 2014 at 09:13:53AM +, Jonathan K. Tullett wrote: > Have there been huge improvements to the efficiency of the code base > between 2.6 and 2.9 (or 2.11)? Does anyone have suggestions on where else > I can look for the cause? > > Thank you in advance for any help you can provid

Re: A transport maps dilema

2014-12-21 Thread Viktor Dukhovni
On Sun, Dec 21, 2014 at 08:57:52AM -0500, Wietse Venema wrote: > Istvan Prosinger: > > Hello, > > > > Is it possibble to make Postfix relay to some specific domain using a > > specific relay, and relay all the other domains by default rules (put > > the mail to an inbox if local or relay outboun

Re: smtpd_sasl_path ignores native DNS lookups?

2014-12-21 Thread Patrick Ben Koetter
* Wietse Venema : > Patrick Ben Koetter: > > smtp_host_lookup = native, dns > > lmtp_host_lookup = native, dns > > Those are SMTP (and LMTP) client settings. Thanks to Postfix's > architecture, those settings do not change how the SMTP server > works. > > > This works: > > smtpd_sasl_path = inet:

Re: One user per domain and sender management

2014-12-21 Thread postfix-nabble
Thanks for your help, I finally find my problem (after 3 hours of rereading and grep configuration files in /etc), it's so simple ... I have a line to declare myorigin in /etc/postfix/main.cf , after comment that line, the configuration work fine. #myorigin = /etc/mailname On 21/12/2014 17:52

Re: A transport maps dilema

2014-12-21 Thread Istvan Prosinger
Works like a charm, thank you all!! On 21.12.2014 14:42, Jose Borges Ferreira wrote: You allmost got it. Transport_map is used to override the default transport and the ones you don't want to override just left out. Just take the * and that should work as you intended. José Borges Ferreira On

Re: A transport maps dilema

2014-12-21 Thread Istvan Prosinger
On 21.12.2014 18:21, Viktor Dukhovni wrote: On Sun, Dec 21, 2014 at 08:57:52AM -0500, Wietse Venema wrote: Istvan Prosinger: Hello, Is it possibble to make Postfix relay to some specific domain using a specific relay, and relay all the other domains by default rules (put the mail to an inbox

Re: Sudden degradation in Postfix performance.

2014-12-21 Thread Wietse Venema
Jonathan K. Tullett: > On 21 December 2014 at 13:56, Wietse Venema wrote: > > > > > Since the end of October, that number has dropped to 16 a second > > > on a good day. > > > > What has changed? Obiously, Postfix didn't change, and replacing > > Postfix isn't going to make a difference. > > > >

postmap called by a httpd-php-script

2014-12-21 Thread li...@rhsoft.net
Hi i try to execute postmap like below from a PHP script running on a webserver via passthru() - the temp-file exists and works out from a root shell, but called from the webserver no return or error the idea behind is * load live ptr-rules via webservice * store them in a temp file * fire t

Re: postmap called by a httpd-php-script

2014-12-21 Thread Wietse Venema
li...@rhsoft.net: > Hi > > i try to execute postmap like below from a PHP script running on a > webserver via passthru() - the temp-file exists and works out from a > root shell, but called from the webserver no return or error > > the idea behind is > > * load live ptr-rules via webservice >

Re: postmap called by a httpd-php-script

2014-12-21 Thread li...@rhsoft.net
Am 21.12.2014 um 22:56 schrieb Wietse Venema: li...@rhsoft.net: i try to execute postmap like below from a PHP script running on a webserver via passthru() - the temp-file exists and works out from a root shell, but called from the webserver no return or error the idea behind is * load live p

Re: postmap called by a httpd-php-script

2014-12-21 Thread Wietse Venema
li...@rhsoft.net: > not possible that easy in the context, but solved anyways > > > BTW, regexps in Postfix tables must come from a trusted source > > just because of interest: what means "trusted source" here? > it works now just fine from /tmp in context of "PrivateTmp=yes" for the > web-insta

Master process running after stopping postfix

2014-12-21 Thread Noah
Hi there, I am migrating a postfix installation from an old server to new server. Stopping postfix does not appear to be stopping the actual process master. What is the best way to fix this situation? running ubuntu 12.04 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise D

Re: Master process running after stopping postfix

2014-12-21 Thread Viktor Dukhovni
On Sun, Dec 21, 2014 at 06:18:27PM -0800, Noah wrote: > :~$ sudo /etc/init.d/postfix stop > * Stopping Postfix Mail Transport Agent postfix > > [ OK ] > :~$ sudo ps -auxww | grep postfix | grep master > Warning: bad ps syntax, perhaps a bogus '-'? See > http://procps.sf.net/faq.html

Re: valvula or policyd

2014-12-21 Thread Selcuk Yazar
Sorry, the word "Quota" I meant Sent Quotas , not mailbox quotas. thanks. Selcuk On Sun, Dec 21, 2014 at 12:53 AM, Wietse Venema wrote: > Peter: > > On 12/20/2014 04:04 AM, Selcuk Yazar wrote: > > > we are using for quota management policyd v2.0.11 . i want to upgrage > > > policyd to 2.0.14