On Tue, Feb 16, 2010 at 1:55 PM, Michele Carandente
<carande...@gmail.com> wrote:
>> But you can and should queue only deliverable messages (postfix will
>> do this if you haven't broked the configuration).
>
> How?
> I have not a standard configuration of postfix.
> This is part of the main.cf:
>
> mydestination = localhost, localhost.localdomain
> relayhost =
> mynetworks = 127.0.0.0/8 10.10.1.0/24
> virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
> #virtual_mailbox_domains =
> virtual_mailbox_base = /var/vmail
> virtual_uid_maps = static:5000
> virtual_gid_maps = static:5000
> transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
> sender_dependent_relayhost_maps = 
> mysql:/etc/postfix/mysql-virtual_smtp_relay.cf
> defer_transports = smtp
> default_transport = smtp
>
> Basically the local users will be match in the transport_maps, when
> mysql is returning the value 'virtual'.

You aren't saying the problem what you want to solve, you need
understand Postfix Address Classes.

Following your crackpot:

1. Reject emails before queue at smtpd level and not (un)setting a transport.
2. To discard emails not listed in transport_maps use
default_transport = discard (unusual).

> Otherwhise the email will be stored in queue.
>

To go to queue is not a problem, not to be deliverable is a problem.


-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

"Don't try to adapt the software to the way you work, but rather
yourself to the way the software works" (myself)

Reply via email to