[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[postfix-jp: 4209] PostgreSQL利用のバーチャルドメイン運用でのコマンドパイプ



西村です。

現在、PostgreSQLを利用した、複数ドメインでのPostfix運用をしております。
このサーバーの特定アドレスに届いたメールだけをCGIへパイプしたいのですが。
過去ログや他サイトで調べた所バーチャルドメインではパイプ出来ないのは判りまし
た。

そこで、PHPへパイプしたいアドレスaaa@xxxxxxxxxxx 宛のメールをaaa+example1.jp
へ転送し
/etc/postfix/aliases ファイルに、aaa+example1.jp:  "| /bin/program.php" を記
述しましたが上手く動きません。

何処かに私の勘違いや設定ミスが有ると思うのですが、皆様からの解決方法やご指摘
よろしくお願いします。

Telnet で接続
==========================================================================
[root@SERVER ~]# telnet ***.***.***.*** 25 Trying ***.***.***.***...
Connected to mail.example2.jp (***.***.***.***).
Escape character is '^]'.
220 example2.jp ESMTP Postfix
helo server
250 example2.jp
mail from:user
250 2.1.0 Ok
rcpt to:aaa+example1.jp
550 5.1.1 <aaa+example1.jp>: Recipient address rejected: User unknown in
virtual mailbox table
==========================================================================

上記接続時のLOG
==========================================================================
May 21 11:56:59 SERVER postfix/smtpd[17188]: connect from
mail.example2.jp[***.***.***.***] May 21 11:57:37 SERVER
postfix/smtpd[17188]: NOQUEUE: reject: RCPT from
mail.example2.jp[***.***.***.***]: 550 5.1.1 <aaa+example1.jp>: Recipient
address rejected: User unknown in virtual mailbox table; from=<user>
to=<aaa+example1.jp> proto=SMTP helo=<server> May 21 11:57:40 SERVER
postfix/smtpd[17188]: disconnect from mail.example2.jp[***.***.***.***]
==========================================================================

postconf -n の結果
==========================================================================
alias_database = hash:/etc/postfix/aliases alias_maps =
hash:/etc/postfix/aliases broken_sasl_auth_clients = yes command_directory =
/usr/sbin config_directory = /etc/postfix daemon_directory =
/usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2
default_process_limit = 50 header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/ html_directory = no inet_interfaces =
***.***.***.*** local_transport = local mail_owner = postfix mailq_path =
/usr/bin/mailq manpage_directory = /usr/local/man milter_protocol = 2
mydestination = mydomain = example2.com myhostname = example2.com mynetworks
= ***.***.***.0/24, 127.0.0.0/8 myorigin = $myhostname newaliases_path =
/usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory =
no relay_domains = $mydestination sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_banner =
$myhostname ESMTP $mail_name smtpd_client_connection_count_limit = 25
smtpd_client_connection_rate_limit = 5 smtpd_client_recipient_rate_limit =
10 smtpd_error_sleep_time = 300 smtpd_hard_error_limit = 15
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
reject_unauth_destination smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous smtpd_soft_error_limit = 5
unknown_local_recipient_reject_code = 550 virtual_alias_domains =
$virtual_alias_maps virtual_alias_maps =
pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf
virtual_gid_maps = static:10000
virtual_mailbox_base = /home/mailuser
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql_virtual_domains_maps.cf
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql_virtual_mailbox_maps.cf
virtual_minimum_uid = 10000
virtual_transport = virtual
virtual_uid_maps = static:10000

_______________________________________________
Postfix-jp-list mailing list
Postfix-jp-list@xxxxxxxxxxxxxxxxxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list

Follow-Ups
[postfix-jp: 4210] Re: PostgreSQL利用のバーチャルドメイン運用でのコマンドパイプ, とみたまさひろ

[検索ページ] [Postfix-JP ML Home]