Thank you Alan and Paul.

@Alan your suggestion works without a glitch, but the drawback is there is
inbetween user who get the mail and this changes the to/from header.

@Paul, I couldnt really grasp your suggestion. Anyway this is my present
postfix config

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

inet_interfaces = all
inet_protocols = ipv4
myhostname = xxxxxxxxxxxxxx
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = xxxxxxxxxxxxxx, localhost.localdomain, localhost
mydomain = xxxxxxxxx
relayhost =
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_domains =
biff = no
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch,
permit_sasl_authenticated
delay_warning_time = 0h
policy_time_limit = 3600
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
recipient_delimiter = +
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps
$mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps
$relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps
$sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps
$transport_maps $virtual_alias_domains $virtual_alias_maps
$virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,
check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 15728640
virtual_minimum_uid = 501
virtual_uid_maps = static:501
virtual_gid_maps = static:501
virtual_mailbox_base = /var/vmail
transport_maps =
virtual_mailbox_domains = proxy:mysql:/etc/postfix/dbmail_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/dbmail_mailboxes.cf
virtual_alias_maps =
sender_bcc_maps =
recipient_bcc_maps =
relay_domains = $mydestination
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/dbmail_recipients.cf
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
smtpd_recipient_restrictions = reject_unknown_sender_domain,
reject_unknown_recipient_domain, reject_non_fqdn_sender,
reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination,
reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname
smtpd_tls_security_level = may
smtpd_enforce_tls = no
smtpd_tls_loglevel = 0
smtpd_tls_key_file = /etc/postfix/ssl/private/Mail.key
smtpd_tls_cert_file = /etc/postfix/ssl/certs/Mail_CA.pem
smtpd_tls_CAfile = /etc/postfix/ssl/certs/Mail_CA.pem
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom
virtual_transport = dbmail-lmtp:127.0.0.1:24
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
content_filter = avscan:[127.0.0.1]:10025
receive_override_options = no_address_mappings

regards

On Fri, Sep 16, 2011 at 1:52 PM, Paul J Stevens <[email protected]> wrote:

> On 15-09-11 22:43, RDP wrote:
> > dbmail-users -x @domain.com <http://domain.com/> -t "|/usr/bin/php -f
> > /var/www/emailin.php"
> >
> > (a) works by (b) doesnt .. every time a catch all email hits postfix I
> > get this error  Persistent Transient Failure Address Status Bad
> > destination mailbox address (in reply to end of DATA command)).
>
> Looks like you are using mysql maps in postfix to do the forwarding -
> which doesn't work.
>
> You need to make sure your alias_maps setup doesn't return values where
> the destination begins with '|' or '!' so it get's fed to dbmail. Then,
> it will work.
>
> So: what does your alias_maps setup look like?
>
>
> --
> ________________________________________________________________
> Paul J Stevens        pjstevns @ gmail, twitter, skype, linkedin
>
>  * Premium Hosting Services and Web Application Consultancy *
>
>           www.nfg.nl/[email protected]/+31.85.877.99.97
> ________________________________________________________________
> _______________________________________________
> DBmail mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to