* Roberto Greiner <robe...@nead.unesp.br>:
> I'm trying to create a /dev/null mailbox, but didn't get much
> success following the recipe at 
> http://www.serverwatch.com/columns/article.php/3844371/Forwarding-a-Postfix-Virtual-Alias-to-devnull.htm
> 
> What I did was following:
> - Add a "blackhole" alias in /etc/aliases (blackhole: /dev/null), an
> ran "newaliases" to validate it.
> - Added the following in mysql_virtual_alias_maps.cf:
>   no-reply@<my domaind> = blackhole
> - Ran:
>   postmap /usr/local/etc/postfix/mysql_virtual_alias_maps.cf (it's a
> FreeBSD platform)
> - Restarted Postfix.

send messages to the discard service.

p@rick



> 
> Sending an email to no-reply@<my_domain> got me the following error
> message in /var/log/maillog:
> NOQUEUE: reject: RCPT from unknown[<my_ip>]: 450 4.1.1
> <no-reply@<my_domain>>: Recipient address rejected: User unknown in
> virtual mailbox table; from=<<my email address>> to=<no-reply@<my
> domain>> proto=ESMTP helo=<[<my_ip>]>
> 
> I tried adding the same entry from mysql_virtual_alias_maps.cf into
> mysql_virtual_mailbox_maps.cf, but no success either. Also, just in
> case, the same page above mentions that adding a valid user for the
> aliases might be necessary. Didn't help either.
> 
> Any ideas would be welcome.
> 
> Thanks
> 
> Roberto
> 
> PS: My setup is the following:
> FreeBSD 7.2 machine
> Postfix 2.8.2
> Postfixadmin 2.3.2
> 
> 
> main.cf has at the end the following entries:
> ## MySQL access
> virtual_alias_maps =
> mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
> virtual_gid_maps = static:125
> virtual_mailbox_base = /var/mail
> virtual_mailbox_domains =
> mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
> virtual_mailbox_limit = 104857600
> virtual_mailbox_maps =
> mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
> virtual_minimum_uid = 125
> virtual_transport = virtual
> #virtual_transport = maildrop
> virtual_uid_maps = static:125
> # Additional for quota support
> virtual_create_maildirsize = yes
> virtual_mailbox_extended = yes
> virtual_mailbox_limit_maps =
> mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
> virtual_mailbox_limit_override = yes
> virtual_maildir_limit_message = Desculpe, tamanho da caixa postal
> excedido, tente mais tarde! Sorry, mailbox size exceeded, try later!
> virtual_overquota_bounce = yes
> 
> 
> -- 
>   -----------------------------------------------------
>                 Marcos Roberto Greiner
> 
>    Os otimistas acham que estamos no melhor dos mundos
>     Os pessimistas tem medo de que isto seja verdade
>                                   James Branch Cabell
>   -----------------------------------------------------
> 

-- 
All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and
justified.

saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>

Reply via email to