Re: Trouble configuring backup MX to reject unauth destination

2013-04-06 Thread Titanus Eramius
Solved it :-) When sending to unknown users, Postfix now rejects the mail with User unknown in virtual mailbox table, and it does so for hosted (that is, virtual mailbox domains) domains as well. It seems the SRS-daemon* I have been using with the main.cf parameters recipient_canonical_maps

Re: Trouble configuring backup MX to reject unauth destination

2013-04-05 Thread Titanus Eramius
Mon, 25 Mar 2013 14:09:04 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Titanus Eramius: MAIL FROM: 250 2.1.0 Ok RCPT TO:real-u...@cogky.dk 250 2.1.5 Ok RCPT TO:non-exist...@cogky.dk 250 2.1.5 Ok If non-exist...@cogky.dk is substituted with non-exist...@aptget.dk, then

Re: Trouble configuring backup MX to reject unauth destination

2013-04-05 Thread Brian Evans
On 4/5/2013 6:56 AM, Titanus Eramius wrote: Mon, 25 Mar 2013 14:09:04 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Titanus Eramius: MAIL FROM: 250 2.1.0 Ok RCPT TO:real-u...@cogky.dk 250 2.1.5 Ok RCPT TO:non-exist...@cogky.dk 250 2.1.5 Ok If non-exist...@cogky.dk is substituted with

Re: Trouble configuring backup MX to reject unauth destination

2013-04-05 Thread Titanus Eramius
Fri, 05 Apr 2013 08:49:39 -0400 skrev Brian Evans grkni...@scent-team.com: Thank you for the link, it was very informative, but didn't solve the problem. I also tried making a virtual_mailbox_maps MySQL query that always returned false, but Postfix still accepted all mail, and then

Re: Trouble configuring backup MX to reject unauth destination

2013-03-25 Thread Titanus Eramius
Fri, 22 Mar 2013 19:12:40 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Test your lookups: postmap -q cogky.dk the-virtual_mailbox_domains-table This should return a result (the value does not matter). aptget:~# postalias -q cogky.dk

Re: Trouble configuring backup MX to reject unauth destination

2013-03-25 Thread Wietse Venema
Titanus Eramius: Fri, 22 Mar 2013 19:12:40 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Test your lookups: postmap -q cogky.dk the-virtual_mailbox_domains-table This should return a result (the value does not matter). aptget:~# postalias -q cogky.dk

Re: Trouble configuring backup MX to reject unauth destination

2013-03-25 Thread Titanus Eramius
Mon, 25 Mar 2013 11:30:41 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Titanus Eramius: Fri, 22 Mar 2013 19:12:40 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Test your lookups: postmap -q cogky.dk the-virtual_mailbox_domains-table This should return a

Re: Trouble configuring backup MX to reject unauth destination

2013-03-25 Thread Wietse Venema
Titanus Eramius: OK, the table is working as it should. Now let's find out why the bogus recipient is accepted: Next step: - Connect to the public (not content re-injection) SMTP port and try ... MAIL FROM: 250 2.1.0 Ok RCPT TO:real-u...@cogky.dk 250 2.1.5 Ok RCPT

Re: Trouble configuring backup MX to reject unauth destination

2013-03-24 Thread mouss
Le 23/03/2013 00:02, Titanus Eramius a écrit : [snip] The goal is a virtual only mailserver, so the domains is stored in MySQL and fetched through virtual_mailbox_domains. Besides virtual_mailbox_domains, I use virtual_mailbox_maps and virtual_alias_maps. The documentation is among the best

Re: Trouble configuring backup MX to reject unauth destination

2013-03-22 Thread Titanus Eramius
Tue, 19 Feb 2013 16:31:05 + skrev Viktor Dukhovni postfix-us...@dukhovni.org: On Tue, Feb 19, 2013 at 12:21:35PM +0100, Titanus Eramius wrote: I've tried with relay_domains, but it matches on domain-level which is too much. I then applied relay_recipient_maps, but it don't seem to

Re: Trouble configuring backup MX to reject unauth destination

2013-03-22 Thread Wietse Venema
Titanus Eramius: Besides aptget.dk this server also hosts cogky.dk (among others), and while unknown recipients is being correctly rejected with a 550 when sent to aptget.dk, they are not when sent to the other virtual domains. Instead they are accepted and then returned by the MAILER_DAEMON,

Re: Trouble configuring backup MX to reject unauth destination

2013-03-22 Thread Titanus Eramius
Fri, 22 Mar 2013 16:55:21 -0400 (EDT) skrev Wietse Venema wie...@porcupine.org: Titanus Eramius: Besides aptget.dk this server also hosts cogky.dk (among others), and while unknown recipients is being correctly rejected with a 550 when sent to aptget.dk, they are not when sent to the other

Re: Trouble configuring backup MX to reject unauth destination

2013-03-22 Thread Wietse Venema
Titanus Eramius: Fri, 22 Mar 2013 16:55:21 -0400 (EDT) skrev Wietse Venema Where is cogky.dk defined: mydestination, virtual_alias_domains, virtual_mailbox_domains, relay_domains? It must be only one. This answer determines where the known recipients must be listed:

Re: Trouble configuring backup MX to reject unauth destination

2013-02-19 Thread Titanus Eramius
Thinking about this, I might have been to specific in my question. At the fundamental level I would like to have 2 or more Postfix servers capable of receiving virtual mail for multiple domains, where one of the servers also handles relaying and local delivery. The rest should function as backup

Re: Trouble configuring backup MX to reject unauth destination

2013-02-19 Thread Viktor Dukhovni
On Tue, Feb 19, 2013 at 12:21:35PM +0100, Titanus Eramius wrote: I've tried with relay_domains, but it matches on domain-level which is too much. I then applied relay_recipient_maps, but it don't seem to have any effect, which means that addresses is still matched on domain basis. Every

Re: Trouble configuring backup MX to reject unauth destination

2013-02-16 Thread Titanus Eramius
Sat, 09 Feb 2013 10:25:31 -0600 skrev Noel Jones njo...@megan.vbhcs.org: ... Nothing wrong with this setup. It's very easy to configure, requires no third-party software or additional packages, and it's easy to understand where your mail goes. I expect that's why it's used as an example

Re: Trouble configuring backup MX to reject unauth destination

2013-02-16 Thread DTNX Postmaster
On Feb 16, 2013, at 12:18, Titanus Eramius tita...@aptget.dk wrote: I plan on upgrading Debians stable Postfix to the current stable version of 2.10 so I may benefit from postscreen, and that will probably be a good time to install amavisd-new as a pre-queue filter. Thank you for the help

Re: Trouble configuring backup MX to reject unauth destination

2013-02-16 Thread Titanus Eramius
Sat, 16 Feb 2013 12:39:24 +0100 skrev DTNX Postmaster postmas...@dtnx.net: On Feb 16, 2013, at 12:18, Titanus Eramius tita...@aptget.dk wrote: I plan on upgrading Debians stable Postfix to the current stable version of 2.10 so I may benefit from postscreen, and that will probably be a

Re: Trouble configuring backup MX to reject unauth destination

2013-02-09 Thread Titanus Eramius
Fri, 08 Feb 2013 21:54:02 +0100 skrev Jeroen Geilman jer...@adaptr.nl: On 02/08/2013 06:02 PM, Titanus Eramius wrote: Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 from=SRS0=3u76=L7=gmail.com=jimmiedcu...@nt-data.dk So you are...not re-injecting spamassassin

Re: Trouble configuring backup MX to reject unauth destination

2013-02-09 Thread James Griffin
-- Titanus Eramius tita...@aptget.dk [2013-02-09 12:23:38 +0100]: All of those examples uses sendmail. But again, in relation to Postfix, it might very well be possible to integrate SA in a better way. Maybe the method suggested by the docs on content_filters?

Re: Trouble configuring backup MX to reject unauth destination

2013-02-09 Thread Noel Jones
On 2/9/2013 5:23 AM, Titanus Eramius wrote: Fri, 08 Feb 2013 21:54:02 +0100 skrev Jeroen Geilman jer...@adaptr.nl: On 02/08/2013 06:02 PM, Titanus Eramius wrote: Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 from=SRS0=3u76=L7=gmail.com=jimmiedcu...@nt-data.dk So you

Trouble configuring backup MX to reject unauth destination

2013-02-08 Thread Titanus Eramius
Hi all Please note that the last time I asked about the behavior of Postfix it turned out I had misunderstood the concept of relaying mail. It might be the case again. I'm running the mailserver that serves this domain + a few others, the mailserver at ubuntudanmark.dk and the mailservers at

Re: Trouble configuring backup MX to reject unauth destination

2013-02-08 Thread /dev/rob0
On Fri, Feb 08, 2013 at 04:06:57PM +0100, Titanus Eramius wrote: Please note that the last time I asked about the behavior of Postfix it turned out I had misunderstood the concept of relaying mail. It might be the case again. I'm running the mailserver that serves this domain + a few others,

Re: Trouble configuring backup MX to reject unauth destination

2013-02-08 Thread Titanus Eramius
Fri, 8 Feb 2013 09:45:07 -0600 skrev /dev/rob0 r...@gmx.co.uk: snip --- titanus@ntdata:/var/log$ grep 048341743609 mail.log.1 Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 from=SRS0=3u76=L7=gmail.com=jimmiedcu...@nt-data.dk pickup(8) picks up mail which was

Re: Trouble configuring backup MX to reject unauth destination

2013-02-08 Thread Jeroen Geilman
On 02/08/2013 06:02 PM, Titanus Eramius wrote: Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 from=SRS0=3u76=L7=gmail.com=jimmiedcu...@nt-data.dk So you are...not re-injecting spamassassin traffic, but instead re-submitting it via sendmail ? That's weird. Feb 7