Hello, I have some problems in implementing a pipe to an external command.
As said in the documentation, I've added the line transport_maps = hash:/etc/postfix/transport in the main.cf file, then I edited the transport file and added the line listadipr...@sms.unimo.it pipediprova: then I executed the postmap command to update the db. Then I added the line pipediprova unix - n n - - pipe flags= user=vmail argv=/usr/local/bin/mailtoliste.pl in the master.cf file. But when I try to send mail to the listadipr...@sms.unimo.it address, the maillog says: Sep 13 15:05:45 secchia postfix/smtpd[27379]: NOQUEUE: reject: RCPT from posta1.sms.unimo.it[155.185.44.49]: 550 5.1.1 <listadipr...@sms.unimo.it>: Recipient address rejected: User unknown in virtual mailbox table; from=<ferrari.fa...@gmail.com> to=<listadipr...@sms.unimo.it> proto=SMTP helo=<localhost> My environment is a rhel 5 with ldap users, thar are mail and system users (that is, every user is a mail account and a system user, but the system users and passowrds are stored in ldap and not in /etc/passwd files). And this is my postconf -n: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases bounce_queue_lifetime = 5d broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix content_filter = scan:127.0.0.1:10025 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 delay_warning_time = 1h html_directory = no inet_interfaces = localhost, 155.185.44.49 mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man maximal_queue_lifetime = 5d message_size_limit = 10485760 mydestination = $myhostname, localhost.$mydomain, localhost mydomain = sms.unimo.it myhostname = posta1.sms.unimo.it mynetworks = 155.185.44.0/28, 127.0.0.0/8 mynetworks_style = class myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /cl/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES receive_override_options = no_address_mappings relayhost = [spostino.sms.unimo.it] sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unauth_destination smtpd_reject_unlisted_sender = yes smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sender_restrictions = reject_non_fqdn_sender smtpd_tls_auth_only = yes smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/sql/virtual_alias_maps virtual_mailbox_base = /cl/mail/vhosts/ virtual_mailbox_domains = sms.unimo.it virtual_mailbox_limit = 83886080 virtual_mailbox_maps = hash:/etc/postfix/sql/virtual_mailbox_maps virtual_transport = dovecot virtual_uid_maps = static:1000 Can anyone help me? Thank you very much in advance. Fabio Ferrari