関根です。 From: SEKINE Tatsuo <tsekine _at_ isoternet.org> on Fri, 4 May 2001 00:33:51 +0900 > むかし、私も同じような要件で調べたのですが、 > MTA: postfix > POP: gnu-pop3d + virtualdomain-patch > の組合せで、けっこー簡単にできた記憶があります。 ん〜、なんか disk を整理してたら以下のような draft が出てきました。 英語の(self-)チェックが面倒だったので出さなかったみたいです。 # 英作文能力の低さが世間に知れ渡ってしまう…(;_;) しかし、読み直して見ると「けっこー簡単」というわけでもないですね。 あと、これって CGI で virtualdomain の設定をできるようにする ことを念頭においた仕組みになってた気がします。なのでちょっと 変なところがあるかもしれません。 # しかし、結局はボツになったので CGI までは作ってません +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I'm trying virtual domain setting with postfix and gnu-pop3d. All of configurations on your site are not suitable for me, thus I describe below what I done. My setting is almost the same of: http://www.reedmedia.net/projects/virtualmail/postfix3.txt But, the owner of spooled files is "nobody" in his setting. Because delivery to a file by local(8) is done by user "nobody". I consider that "nobody" shouldn't have any files for security reason. Thus, I set up to deliver mail real user: 1. make a user(who has invalid shell): # useradd -d /etc/virtual -s /dev/null -m v_admin 2. edit main.cf: # virtual map is managed by the user "v_admin" virtual_maps = hash:/etc/virtual/virtualmap # enable address expansion recipient_delimiter = + 3. edit /etc/virtual/virtualmap: domainname1.com whatever user.name1 _at_ domainname1.com v_admin+domainname1.com_user.name1 user.name2 _at_ domainname1.com v_admin+domainname1.com_user.name2 # domainname2.com whatever user.name1 _at_ domainname2.com v_admin+domainname2.com_user.name1 user.name2 _at_ domainname2.com v_admin+domainname2.com_user.name2 4. create .forward+* files $ cd /etc/virtual $ cat make_forward.sh #!/bin/sh VIRTUAL_MAILDIR=/var/spool/virtual/ while read arg rest; do if [ x"$rest" = xwhatever ]; then continue else name=`echo $arg | cut -d@ -f1` domain=`echo $arg | cut -d@ -f2` echo "${VIRTUAL_MAILDIR}${domain}/${name}" \ > ".forward+${domain}_${user}" fi done $ grep -v '^[ ]*\(#.*\|\)*$' virtual_map | ./make_forward.sh The other settings is the same of http://www.reedmedia.net/projects/virtualmail/postfix3.txt By the way, password file format is the same of Apache's one. Then, you may use htpasswd(1) to generate password file.
References:
- [linux-users:83143] Re: POP server with independent usermanagementSatoshi I.Nozawa
- [linux-users:83147] Re: POP server with independent user managementTakeshi Kusune / 楠根雄志
- [linux-users:83188] Re: POP server with independent usermanagementSEKINE Tatsuo
- Prev by Subject: [linux-users:83216] Re: POP server with independent usermanagement
- Next by Subject: [linux-users:83218] Re: ppxpでの接続
- Previous by thread: [linux-users:83188] Re: POP server with independent usermanagement
- Next by thread: [linux-users:83179] Re: POP server with independent user management
- Indexes:[Main][Thread]