http://www.inter7.com/vpopmail/postfix.html にあるとおり master.cf, main.cf を設定したんだけど, それだけだと Relay Access Denied が出る. relay_domains に設定すると, mail for xxxxxx.xx.jp loops back to myself virtual_maps に設定すると, User unknown...
[postfix 設定] 附属 FAQ の null client ってやつ. ただ, ↓はわからなかったので放置. /etc/postfix/master.cf: Comment out the SMTP server entry Comment out the local delivery agent entry
Received: from yumeko.to (217.142.104.203.livedoor.com [203.104.142.217]) by list.ayamura.org (8.11.6/8.11.6) with SMTP id g0OIPqV01292 for <ayamura@ayamura.org>; Fri, 25 Jan 2002 03:25:54 +0900 (JST) env-from (kei@centifeet.com) From: kei@centifeet.com To:
Received: from yumeko.to (125.140.104.203.livedoor.com [203.104.140.125]) by list.ayamura.org (8.11.6/8.11.6) with SMTP id g0P2gZV02913 for <ayamura@ayamura.org>; Fri, 25 Jan 2002 11:42:39 +0900 (JST) env-from (mari@meteryard.com) From: mari@meteryard.com To:
solidpop3d どうよ? オレは vpopmail 使ったことないので、その点は分からんけど、 VIRTUALS に - IP based virtual hosting: read spop3d(5).conf manual for details. - non-IP based virtual hosting: user is logged as username@host.name.com or username%host.name.com if POP3 client doesn't allow to use '@' in username. host.name.com is called "virtual domain name".
# The mailbox_size_limit parameter controls the maximal size of a # mailbox or maildir file (in fact, it limits the size of any file # that is written to upon local delivery) The default is 50 MBytes. # This limit must not be set smaller than the message size limit. # mailbox_size_limit = 51200000
これだけだったと思います。それで、 Make su Make install Make install-man としました。 起動して、rpc.dracd & ./testing localhost 1.2.3.4 とした後に、 /usr/local/BerkeleyDB.3.3/bin/db_dump -p /usr/local/etc/postfix/dracd.db を実行したら、 db_dump: /usr/local/etc/postfix/dracd.db: unexpected file type or format db_dump: open: /usr/local/etc/postfix/dracd.db: Invalid argument こう出てしまい、参照できませんでした。 どこが間違っているのか分かりませんので、 お知恵を拝借させて頂けると嬉しいです。
>>335のようにBerkeleyDBとdracをインストールしなおした後、 Cyrus-SASL 1.5.27を $ ./configure --enable-login=yes $ make $ su # make install # ln -s /usr/local/lib/sasl /usr/lib/sasl
Postfix 1.1.11を $ make tidy $ make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/lib -DHASH_DB -I/usr/local/BerkeleyDB.3.3/include" \ > AUXLIBS="-L/usr/local/lib -lsasl -L/usr/local/BerkeleyDB.3.3/lib -ldb" $ make $ su # make install というようにしていたんですが、config_directoryを設定したら、 config_directory: [] /etc/postfix /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found
Please specify the destination directory for installed Postfix daemon programs. This directory should not be in the command search path of any users. daemon_directory: [] という様に、daemon_directoryの設問との間に、ずらっと・・・。 で、どうしようもないので、そのまま進めたんですが、 設問に全部答えて、installされているときに最終的にまた /usr/libexec/ld-elf.so.1: Shared object "libdb-3.3.so" not found *** Error code 1
>>458 qpopperもstandaloneになるはずだが。 FreeBSDなら、/usr/ports/mail/qpopperでmake pre-everythingとかやると You may use the following build options:のなかに WITH_STANDALONE_MODE=yes builds qpopper to be run without inetd って出てくる。
%telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 smtp.some.net ESMTP Postfix helo smtp.some.net 250 smtp.some.net mail from: sender@some.net 250 Ok rcpt to: noexistent@some.net 450 <noexistent@some.net>: User unknown in local recipient table quit 221 Bye Connection closed by foreign host.
ちなみに unknown_local_recipient_reject_code = 250 と強引なワザを使おうとしたら 450 Service unavailable が帰ってきた。
Jan 11 17:04:10 hage postfix/smtpd[17926]: connect from sml-z1.infoseek.co.jp[211.13.222.42] Jan 11 17:04:10 hage postfix/smtpd[17926]: 5690230024: client=sml-z1.infoseek.co.jp[211.13.222.42] Jan 11 17:08:37 hage postfix/smtpd[17923]: timeout after DATA from sml-z1.infoseek.co.jp[211.13.222.42] Jan 11 17:08:37 hage postfix/smtpd[17923]: disconnect from sml-z1.infoseek.co.jp[211.13.222.42] だから、なんでインフォシークメール受け取れないんだ!
$ telnet smtp.nifty.com 25 Trying 202.248.37.200... Connected to smtp.nifty.com. Escape character is '^]'. 220 mail505.nifty.com ESMTP Nifty Mail Server MAIL FROM:<myname@家鯖> 250 2.1.0 <myname@家鯖>... Sender ok RCPT TO:<myname@users.sourceforge.net> 250 2.1.5 <myname@users.sourceforge.net>... Recipient ok DATA 354 Enter mail, end with "." on a line by itself From: myname@localhost
>765 If the result is still too long then Postfix truncates the address and fixes any trailing backslahses or unbalanced quotes that might do damage. ここの具体的な動作、おしえて。
>766 The fix truncates non-address information in message address headers (comments, etc.) to 250 characters per address. This will not affect ordinary email. However, SPAM from poorly written software can trigger warnings.
# The mailbox_size_limit parameter controls the maximal size of a # mailbox or maildir file (in fact, it limits the size of any file # that is written to upon local delivery) The default is 50 MBytes. # This limit must not be set smaller than the message size limit. # mailbox_size_limit = 51200000