postfix virtual domainでプログラムにメール転送メモ
久々に Postfixの受信メールでプログラムに送るのにはまり。
mysql + dovcotな仕様なので、以下の方法でプログラムに送っている。
# cat yoshimax-aliases
movie "|/home/yoshimax/local/keitaimovie/store.pl"
# cat /etc/postfix/yoshimax-aliases.cf
movie@DOMAIN movie
を書いて、
main.cf
alias_maps = hash:/usr/local/mailman/data/aliases,
hash:/etc/postfix/yoshimax-aliases
virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf,
hash:/usr/local/mailman/data/virtual-mailman, hash:/etc/postfix/yoshimax-aliases.cf
に追加して
# postmap yoshimax-aliases
# postmap yoshimax-aliases.cf
をしなければいけないのを、以下のように実行してハマリ。
[root@dns1 postfix]# postalias maillog-aliases
もう、4:30だべ。。。

コメント (2)
There are a lot of people here. I’ll join you guys. Believe it or not, many people fail in commenting stuff. I’m just trying to say a simple thing – before commenting something, think twice!
投稿者: Hanlon | 2008年4月 7日 03:41
日時: 2008年4月 7日 03:41
I hate people like that! They are all crazy! They think they are the coolest and smartest ever. But really they are dumb
投稿者: piffit | 2008年4月 9日 18:50
日時: 2008年4月 9日 18:50