--- mouss <[EMAIL PROTECTED]> wrote: > Stephen Liu a écrit : > > What I can't figure out is; > > > > > > User 'satimis' was created when I built Debian Etch. It has folder > > created on /home/satimis > > > > I thought you were after virtual mailbox domains. what do unix users > have to do with this? > > # ls -ld /home/satimis/ > > drwxr-xr-x 2 satimis satimis 4096 2008-10-09 17:02 /home/satimis/ > > > > > > satimis can't receive mails, all mails to [EMAIL PROTECTED] > rejected > > because it is not on vmail group.
Hi Mouss, I followed this howto; http://linux.justinhartman.com/Postfix_and_Courier_Installation_using_MySQL to build this Mail Server. After completion mails can be sent via telnet and can be received by satimis, the only user of this box created while installing/configuring Debian Etch. The Mail Server is running as domU (guest) on a Xen Machine with Debian Etch as Host OS, dom0. Mails sent to [EMAIL PROTECTED] were received on /var/mail/satimis, which file was created automatically on the arrival of the first mail. On next day after booting the Xen Machine and starting the Mail Server it was found that mails still can be sent via telnet. But mails to [EMAIL PROTECTED] were totally rejected. I still can resolve how this would happen. I didn't touch the Mail Server after booting. # tail /var/log/mail.log Oct 9 14:24:02 xen6 postfix/smtpd[1415]: cannot load RSA certificate and key data Oct 9 14:24:02 xen6 postfix/smtpd[1415]: connect from ti-out-0910.google.com[209.85.142.186] Oct 9 14:24:02 xen6 postfix/trivial-rewrite[1419]: warning: do not list domain satimis.com in BOTH mydestination and vi rtual_mailbox_domains Oct 9 14:24:02 xen6 postfix/smtpd[1415]: NOQUEUE: reject: RCPT from ti-out-0910.google.com[209.85.142.186]: 550 5.1.1 < [EMAIL PROTECTED]>: Recipient address rejected: User unknown in local recipient table; from=<[EMAIL PROTECTED]> to =<[EMAIL PROTECTED]> proto=ESMTP helo=<ti-out-0910.google.com> Oct 9 14:24:02 xen6 postfix/smtpd[1415]: disconnect from ti-out-0910.google.com[209.85.142.186] Oct 9 14:25:51 xen6 postfix/smtp[1326]: 9EB723D80C: conversation with f.mx.mail.yahoo.com[209.191.88.247] timed out whi le receiving the initial server greeting Oct 9 14:25:52 xen6 postfix/smtp[1326]: 9EB723D80C: host g.mx.mail.yahoo.com[209.191.88.239] refused to talk to me: 421 Message from (220.232.213.178) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer /defer-06.html Oct 9 14:25:52 xen6 postfix/smtp[1326]: 9EB723D80C: host f.mx.mail.yahoo.com[68.142.202.247] refused to talk to me: 421 Message from (220.232.213.178) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer /defer-06.html Oct 9 14:25:57 xen6 postfix/smtp[1326]: 9EB723D80C: to=<[EMAIL PROTECTED]>, relay=b.mx.mail.yahoo.com[66.196.97.250]:25 , delay=5257, delays=4947/0.07/309/0.92, dsn=2.0.0, status=sent (250 ok dirdel) Oct 9 14:25:57 xen6 postfix/qmgr[1321]: 9EB723D80C: removed After removed "satimis.com" on the line of mydestination of main.cf and ran following command; # cd /etc/postfix # openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509 Restarted postfix. Problem was partially solved. "cannot load RSA certificate and key data" disappeared. Sent a mail to [EMAIL PROTECTED] on Gmail. The mail was rejected immediately. # tail /var/log/mail.log Oct 9 15:05:58 xen6 postfix/qmgr[1636]: B94273D80C: removed Oct 9 15:06:27 xen6 postfix/smtpd[1637]: disconnect from ti-out-0910.google.com[209.85.142.184] Oct 9 15:09:47 xen6 postfix/anvil[1640]: statistics: max connection rate 1/60s for (smtp:209.85.142.184) at Oct 9 15:05:57 Oct 9 15:09:47 xen6 postfix/anvil[1640]: statistics: max connection count 1 for (smtp:209.85.142.184) at Oct 9 15:05:57 Oct 9 15:09:47 xen6 postfix/anvil[1640]: statistics: max cache size 1 at Oct 9 15:05:57 Oct 9 15:12:21 xen6 postfix/master[1630]: terminating on signal 15 Oct 9 15:12:21 xen6 postfix/master[1737]: daemon started -- version 2.3.8, configuration /etc/postfix Oct 9 15:13:41 xen6 postfix/smtpd[1744]: connect from ti-out-0910.google.com[209.85.142.190] Oct 9 15:13:41 xen6 postfix/smtpd[1744]: NOQUEUE: reject: RCPT from ti-out-0910.google.com[209.85.142.190]: 550 5.1.1 <[EMAIL PROTECTED]>: Recipient address rejected: User unknown in virtual mailbox table; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<ti-out-0910.google.com> Oct 9 15:13:41 xen6 postfix/smtpd[1744]: disconnect from ti-out-0910.google.com[209.85.142.190] I don't know how to fix the problem. Advice would be much appreciated. TIA > If you want a single uid:gid to own the mail store, use > virtual_uid_maps = static:5000 > virtual_gid_maps = static:5000 > (the 5000 values are the vmail uid and gid). > > This is shown in the workaround.org howto. did you read it? and did > you > read and understand > http://www.postfix.org/VIRTUAL_README.html Whether you meant this howto http://workaround.org/articles/ispmail-etch/ ..... You need to set the virtual_uid_maps and virtual_gid_maps to these IDs: $> postconf -e virtual_uid_maps=static:5000 $> postconf -e virtual_gid_maps=static:5000 and on http://www.postfix.org/VIRTUAL_README.html#virtual_alias Postfix virtual MAILBOX example: separate domains, non-UNIX accounts ??? I did follows already; postconf -e 'virtual_uid_maps = static:5000' postconf -e 'virtual_gid_maps = static:5000' > > Oct 10 05:03:24 xen6 postfix/smtpd[1447]: NOQUEUE: reject: RCPT > from > > ti-out-0910.google.com[209.85.142.184]: 550 5.1.1 > > <[EMAIL PROTECTED]>: Recipient address rejected: User unknown in > > virtual mailbox table; from=<[EMAIL PROTECTED]> > > > > [EMAIL PROTECTED] is not found in virtual_mailbox_maps. you can use > postmap -q to test your maps. for example: > > # postmap -q [EMAIL PROTECTED] > mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf > > This should return the mailbox location for [EMAIL PROTECTED] # postmap -q [EMAIL PROTECTED] /etc/postfix/mysql-virtual_mailbox_limit_maps.cf postmap: fatal: open database /etc/postfix/mysql-virtual_mailbox_limit_maps.cf.db: No such file or directory # cat /etc/postfix/mysql-virtual_mailbox_limit_maps.cf user = mail_admin password = myadminpass dbname = mail table = users select_field = quota where_field = email hosts = 127.0.0.1 Others noted with thanks B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com
