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 rec

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 : > > 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 bounced it after Dovec

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 : Titanus Eramius: MAIL FROM:<> 250 2.1.0 Ok RCPT TO: 250 2.1.5 Ok RCPT TO: 250 2.1.5 Ok If non-exist...@cogky.dk is substituted with non-exist...@aptget.dk, then it is still rejected with "..

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 : > Titanus Eramius: > > MAIL FROM:<> > > 250 2.1.0 Ok > > RCPT TO: > > 250 2.1.5 Ok > > RCPT TO: > > 250 2.1.5 Ok > > > If non-exist...@cogky.dk is substituted with non-exist...@aptget.dk, > > then it is still rejected with "... unknown

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: > 250 2.1.5 Ok > RCPT TO: > 250 2.1.

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 : > Titanus Eramius: > > Fri, 22 Mar 2013 19:12:40 -0400 (EDT) skrev Wietse Venema > > : > > > > > Test your lookups: > > > > > > postmap -q cogky.dk the-virtual_mailbox_domains-table > > > This should return a result (the value does not

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 > : > > > 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 > mysql:/etc/postfix/mysql_virt

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 : > 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 mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf cogky.dk > po

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

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: > > local_r

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 : > 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 > > d

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_DAEMO

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 : > 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, whic

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. > > Eve

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 M

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 : > On Feb 16, 2013, at 12:18, Titanus Eramius 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-ne

Re: Trouble configuring backup MX to reject unauth destination

2013-02-16 Thread DTNX Postmaster
On Feb 16, 2013, at 12:18, Titanus Eramius 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 once again. A

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 : ... > 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 on the spamassassin

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 : > >> On 02/08/2013 06:02 PM, Titanus Eramius wrote: >> >>> Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 >>> from= >> >> So you are...not re-injecting spamassassin traffic, b

Re: Trouble configuring backup MX to reject unauth destination

2013-02-09 Thread James Griffin
--> Titanus Eramius [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? > http://www.postfix.org/FILTER_README.html#adv

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 : > On 02/08/2013 06:02 PM, Titanus Eramius wrote: > > > Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 > > from= > > So you are...not re-injecting spamassassin traffic, but instead > re-submitting it via sendmail ? > Th

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= So you are...not re-injecting spamassassin traffic, but instead re-submitting it via sendmail ? That's weird. Feb 7 22:12:48 ntdata postfix/pipe[30177]: 39E441743607:

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 : snip > > --- > > titanus@ntdata:/var/log$ grep "048341743609" mail.log.1 > > > > Feb 7 22:12:48 ntdata postfix/pickup[24843]: 048341743609: uid=5005 > > from= > > pickup(8) picks up mail which was sent via sendmail(1). This is a > local/system u

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 oth

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 nt-d