Re: Using transport only if local user exists

2014-03-16 Thread Rick Zeman
On Sat, Mar 15, 2014 at 11:34 PM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/15/2014 5:08 PM, Rick Zeman wrote: I've started working on my bastard Mac postfix relay. For delivery to the local domain, it will only relay to the internal mail server defined in transport if the user exists

Re: Using transport only if local user exists

2014-03-16 Thread Noel Jones
On 3/16/2014 8:31 AM, Rick Zeman wrote: On Sat, Mar 15, 2014 at 11:34 PM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/15/2014 5:08 PM, Rick Zeman wrote: I've started working on my bastard Mac postfix relay. For delivery to the local domain, it will only relay to the internal mail server

Re: Using transport only if local user exists

2014-03-16 Thread Rick Zeman
On Sun, Mar 16, 2014 at 9:43 AM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/16/2014 8:31 AM, Rick Zeman wrote: On Sat, Mar 15, 2014 at 11:34 PM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/15/2014 5:08 PM, Rick Zeman wrote: I've started working on my bastard Mac postfix relay. For

Statistics on TLS certificates used when sending with opportunistic TLS

2014-03-16 Thread Ralf Hauser
Hi, Fortunately, more and more smtp servers offer STARTTLS. I would like to analyze the certificates used when employing STARTTLS opportunistically. Is there a way to have postfix e.g. insert into a mysql table for every message sent over TLS the following record: 1) recipient domain name 2)

Re: Statistics on TLS certificates used when sending with opportunistic TLS

2014-03-16 Thread Wietse Venema
Ralf Hauser: Hi, Fortunately, more and more smtp servers offer STARTTLS. I would like to analyze the certificates used when employing STARTTLS opportunistically. Is there a way to have postfix e.g. insert into a mysql table for every message sent over TLS the following record: 1)

Postfix badmailfromto filtering

2014-03-16 Thread Ahmad riza h nst
Dear all, I have some experiences on postfix. Currently i work on isp and we have one outgoing server using postfix+amavis+clamav+spamassassin on freebsd, running well. We have plan to migrate our MXs from qpsmtpd+qmail to postfix+amavis and my problem is i can't find way to implement

Re: Using transport only if local user exists

2014-03-16 Thread Noel Jones
On 3/16/2014 10:13 AM, Rick Zeman wrote: On Sun, Mar 16, 2014 at 9:43 AM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/16/2014 8:31 AM, Rick Zeman wrote: On Sat, Mar 15, 2014 at 11:34 PM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/15/2014 5:08 PM, Rick Zeman wrote: I've started working on

RE: Statistics on TLS certificates used when sending with opportunistic TLS

2014-03-16 Thread Ralf Hauser
Hi Wietse, Thanks for the quick response. Just tried it: smtp_tls_loglevel = 1 tells me the cipher used, but not really anything on the certificate (fingerprint/digest or serial-#/issuer not visible) Even smtp_tls_loglevel = 4 doesn't show that in an obvious way :( What did you have in mind

Re: relay denied in postfix

2014-03-16 Thread Noel Jones
On 3/16/2014 11:12 AM, Tim Dunphy wrote: Guys, For some reason gmail decided to shunt this conversation into my spam folder. So, sorry if I've missed any of your replies. At any rate I had a perusal of the digest form of the list and found this reply from Noel: Postfix doesn't

Re: Postfix badmailfromto filtering

2014-03-16 Thread Noel Jones
On 3/16/2014 11:20 AM, Ahmad riza h nst wrote: Dear all, I have some experiences on postfix. Currently i work on isp and we have one outgoing server using postfix+amavis+clamav+spamassassin on freebsd, running well. We have plan to migrate our MXs from qpsmtpd+qmail to postfix+amavis

Re: Statistics on TLS certificates used when sending with opportunistic TLS

2014-03-16 Thread Wietse Venema
Ralf Hauser: Hi Wietse, Thanks for the quick response. Just tried it: smtp_tls_loglevel = 1 tells me the cipher used, but not really anything on the certificate (fingerprint/digest or serial-#/issuer not visible) The information is available with posttls-finger, openssl s_client, etc.

Re: relay denied in postfix

2014-03-16 Thread bluethundr
Do not list your domain in more than one place, otherwise postfix will log warnings and various things may not work as expected. Good advice. Thanks. Apparently your virtual_mailbox_domains lookup isn't working. Test your lookup with: postmap -q example.com

Re: PATCH: Making TLS errors hard

2014-03-16 Thread Wietse Venema
-2.12-20140316. This resolves some old requests to make hard/soft errors more configurable. Support in the local(8) delivery agent will be added later; this requires new code to implement owner-listname sender overrides with deferred mail. Support in qmgr(8) requires an analysis whether bounce

Re: Using transport only if local user exists

2014-03-16 Thread Viktor Dukhovni
On Sun, Mar 16, 2014 at 09:31:29AM -0400, Rick Zeman wrote: Oy. Got it, thanks. One last question. I have recipient_delimiters = - and also reject_unverified_recipient in the smtpd recipient restrictions. It looks like postfix (on my system, at least) does the smtp probe to the

Re: relay denied in postfix

2014-03-16 Thread Noel Jones
On 3/16/2014 12:24 PM, bluethu...@jokefire.com wrote: Apparently your virtual_mailbox_domains lookup isn't working. Test your lookup with: postmap -q example.com mysql:/etc/postfix/mysql_domains.cf Listed domains should return a result -- any non-empty result is considered valid. Nothing

Re: relay denied in postfix

2014-03-16 Thread Sergei
On Sunday 16 March 2014 13:24:10 bluethu...@jokefire.com wrote: I'm wondering if there is some flaw in my config that is preventing postfix from reading from the db? I'd really appreciate any advice you might have n getting postfix to interface with mysql. Try the connection specified in the

Re: relay denied in postfix

2014-03-16 Thread bluethundr
Sorry, I don't use sql and am unable to provide help beyond knowing what response postfix expects. Maybe someone else can help with your sql queries. Start a new thread asking about this specific problem. No problem, Noel. Thanks for your response. I'll do that at some point shortly I'm

Re: relay denied in postfix

2014-03-16 Thread bluethundr
Hi Sergei Try the connection specified in the files manually by logging as that exact user and running the query. You might get some useful error messages from MySQL. I tried pulling the info specified in the mysql_domains.cf file that's specified to retrieve domain info in my postfix

Re: relay denied in postfix

2014-03-16 Thread Sergei
On Sunday 16 March 2014 21:19:24 bluethu...@jokefire.com wrote: user=mail password=secret dbname=maildb table=domains select_field=domain where_field=domain hosts=127.0.0.1 additional_conditions = and enabled = 10 I am not familiar with this syntax. I use the following: user = mail

Re: relay denied in postfix

2014-03-16 Thread Viktor Dukhovni
On Mon, Mar 17, 2014 at 02:28:02AM +0100, Sergei wrote: On Sunday 16 March 2014 21:19:24 bluethu...@jokefire.com wrote: user=mail password=secret dbname=maildb table=domains select_field=domain where_field=domain hosts=127.0.0.1 additional_conditions = and enabled = 10 I am

Re: relay denied in postfix

2014-03-16 Thread bluethundr
On 2014-03-16 21:32, Viktor Dukhovni wrote: On Mon, Mar 17, 2014 at 02:28:02AM +0100, Sergei wrote: On Sunday 16 March 2014 21:19:24 bluethu...@jokefire.com wrote: user=mail password=secret dbname=maildb table=domains select_field=domain where_field=domain hosts=127.0.0.1

Re: relay denied in postfix

2014-03-16 Thread bluethundr
On 2014-03-16 21:52, bluethu...@jokefire.com wrote: On 2014-03-16 21:32, Viktor Dukhovni wrote: On Mon, Mar 17, 2014 at 02:28:02AM +0100, Sergei wrote: On Sunday 16 March 2014 21:19:24 bluethu...@jokefire.com wrote: user=mail password=secret dbname=maildb table=domains

postfix delivers all mail to root's mailbox

2014-03-16 Thread Thomas Moretto
subject pretty much says it all. if i send email to user_...@mydomain.com or to user_...@mydomain.com, the mail gets delivered to folder: /root/Maildir/new i believe i set my main.cf up correctly. here is the mailbox section: # The home_mailbox parameter specifies the optional pathname

Re: relay denied in postfix

2014-03-16 Thread Viktor Dukhovni
On Sun, Mar 16, 2014 at 10:04:38PM -0400, bluethu...@jokefire.com wrote: Better: query = SELECT domain FROM domains WHERE domain='%s' AND enabled = 10 there is no need to select all the columns. (No idea what the significance of enabled = 10 is, except that seemingly this is

Re: relay denied in postfix

2014-03-16 Thread bluethundr
On 2014-03-16 22:27, Viktor Dukhovni wrote: On Sun, Mar 16, 2014 at 10:04:38PM -0400, bluethu...@jokefire.com wrote: Better: query = SELECT domain FROM domains WHERE domain='%s' AND enabled = 10 there is no need to select all the columns. (No idea what the significance of enabled =

RE: postfix delivers all mail to root's mailbox

2014-03-16 Thread Thomas Moretto
solved. simple oversight. mydestination parameter was not set correctly. From: tdmore...@hotmail.com To: postfix-users@postfix.org Subject: postfix delivers all mail to root's mailbox Date: Sun, 16 Mar 2014 22:26:57 -0400 subject pretty much says it all. if i send email to