« Web解析サービス Google Analytics | メイン | スティーブ・ジョブズ-偶像復活 steve jobs iCon »

postfix + mysql プログラム実行

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だべ。。。

Author: yoshimax Date: 2005年11月15日 04:23 | | Comment (2) | Trackback (0) | Bookmark: このエントリーを含むはてなブックマーク このエントリーをはてなブックマークに追加 Save This Page この記事をクリップ! このエントリーを含むはてなブックマーク

トラックバック

このエントリーのトラックバックURL:
http://www.de4u.net/mt41/mt-tb.cgi/1106

コメント (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!

I hate people like that! They are all crazy! They think they are the coolest and smartest ever. But really they are dumb

コメントする

About

2005年11月15日 04:23に投稿されたエントリーのページです。

ひとつ前の投稿は「Web解析サービス Google Analytics」です。

次の投稿は「スティーブ・ジョブズ-偶像復活 steve jobs iCon」です。

他にも多くのエントリーがあります。メインページアーカイブページも見てください。

Technorati

Technorati search

» ここにリンクしているブログ

2008年5月

        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

アーカイブ

Powered by
Movable Type 4.1