Study Area Facebook粉絲團http://www.facebook.com/sataiwan
0 會員 與 1 訪客 正在閱讀本文。
[root@mail ~]# tail /var/log/maillogMar 21 11:51:55 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 21 11:53:31 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 21 11:53:50 mail postfix/smtpd[28452]: connect from webmsr6.webmail.hinet.net[61.220.15.206]Mar 21 11:53:50 mail postfix/smtpd[28452]: 8DA9D68066: client=webmsr6.webmail.hinet.net[61.220.15.206]Mar 21 11:53:50 mail postfix/cleanup[28456]: 8DA9D68066: message-id=<1748974644.1142912706992.JavaMail.nobody@sg2001-ap-1>Mar 21 11:53:50 mail postfix/qmgr[8485]: 8DA9D68066: from=<nick.hsu1976@msa.hinet.net>, size=1249, nrcpt=1 (queue active)Mar 21 11:53:50 mail postfix/virtual[28457]: 8DA9D68066: to=<test@faylice.com.tw>, relay=virtual, delay=0, status=sent (delivered to mailbox)Mar 21 11:53:50 mail postfix/qmgr[8485]: 8DA9D68066: removedMar 21 11:53:50 mail postfix/smtpd[28452]: disconnect from webmsr6.webmail.hinet.net[61.220.15.206]Mar 21 11:54:31 mail pop3-login: Login: test [::ffff:61.222.103.142]
[root@mail ~]# ls -l /var/vmail/faylice.com.twtotal 456-rw------- 1 peggy peggy 457179 Mar 21 11:27 peggy-rw------- 1 test test 1390 Mar 21 11:53 test
[root@mail ~]# postconf -nalias_database = hash:/etc/postfix/aliasesalias_maps = hash:/etc/postfix/aliasescommand_directory = /usr/sbinconfig_directory = /etc/postfixdaemon_directory = /usr/libexec/postfixdebug_peer_level = 2html_directory = noinet_interfaces = allmail_owner = postfixmail_spool_directory = /var/spool/mailmailbox_size_limit = 1024000000mailq_path = /usr/bin/mailqmanpage_directory = /usr/local/manmydestination = $myhostname, localhost.$mydomain, localhost, %mydomain, shuyo.com.twmydomain = shuyo.com.twmyhostname = mail.shuyo.com.twmynetworks = 127.0.0.0/8, 61.222.103.142, 203.73.128.136/29myorigin = $mydomainnewaliases_path = /usr/bin/newaliasesqueue_directory = /var/spool/postfixreadme_directory = /etc/postfix/readme_filesrelay_domains = $mydestinationsample_directory = /etc/postfixsendmail_path = /usr/sbin/sendmailsetgid_group = postdropsmtpd_client_restrictions = permit_sasl_authenticatedsmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destinationsmtpd_sasl_auth_enable = yessmtpd_sasl_local_domain = ' 'smtpd_sasl_security_options = noanonymousunknown_local_recipient_reject_code = 550virtual_alias_maps = hash:/etc/postfix/virtual_aliasesvirtual_gid_maps = hash:/etc/postfix/virtual_gidsvirtual_mailbox_base = /var/vmailvirtual_mailbox_domains = faylice.com.tw, silverdeco.com.twvirtual_mailbox_maps = hash:/etc/postfix/virtualvirtual_uid_maps = hash:/etc/postfix/virtual_uids
請問你用哪種 pop3 daemon 程式提供收信服務 ?==
有沒有設定 /etc/dovecot.confdefault_mail_env =
SSH Secure Shell 3.1.0 (Build 235)Copyright (c) 2000-2001 SSH Communications Security Corp - http://www.ssh.com/This copy of SSH Secure Shell is a non-commercial version.This version does not include PKI and PKCS #11 functionality.Last login: Tue Mar 21 17:04:12 2006 from 61.222.103.142[root@mail ~]# vi /etc/dovecot.conf# More verbose logging. Useful for figuring out why authentication isn't# working.#auth_verbose = no# Even more verbose logging for debugging purposes. Shows for example SQL# queries.#auth_debug = no# digest-md5 authentication process. It requires special MD5 passwords which# /etc/shadow and PAM doesn't support, so we never need roots to handle it.# Note that the passwd-file is opened before chrooting and dropping root# privileges, so it may be 0600-root owned file.#auth = digest_md5#auth_mechanisms = digest-md5#auth_realms =#auth_userdb = passwd-file /etc/passwd.imap#auth_passdb = passwd-file /etc/passwd.imap#auth_user = imapauth#auth_chroot =# if you plan to use only passwd-file, you don't need the two auth processes,# simply set "auth_methods = plain digest-md5"search hit BOTTOM, continuing at TOP## Dovecot 1.0 configuration file# Default values are shown after each value, it's not required to uncomment# any of the lines. Exception to this are paths, they're just examples# with real defaults being based on configure options. The paths listed here# are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var# --with-ssldir=/usr/share/ssl# Base directory where to store runtime data.#base_dir = /var/run/dovecot/# Protocols we want to be serving:# imap imaps pop3 pop3s#protocols = imap imapsprotocols = pop3 pop3s imap imaps# IP or host address where to listen in for connections. It's not currently# possible to specify multiple addresses. "*" listens in all IPv4 interfaces.# "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4# interfaces depending on the operating system. You can specify ports with# "host:port".imap_listen = [::]pop3_listen = [::]/default # Disable LOGIN command and all other plaintext authentications unless# SSL/TLS is used (LOGINDISABLED capability). Note that 127.*.*.* and# IPv6 ::1 addresses are considered secure, this setting has no effect if# you connect from those addresses.#disable_plaintext_auth = yes# Use this logfile instead of syslog(). /dev/stderr can be used if you want to# use stderr for logging (ONLY /dev/stderr - otherwise it is closed).#log_path =# For informational messages, use this logfile instead of the default#info_log_path =# Prefix for each line written to log file. % codes are in strftime(3)# format.#log_timestamp = "%b %d %H:%M:%S "#### Login processes### Directory where authentication process places authentication UNIX sockets/default # Maximum number of connections allowed in login state. When this limit is# reached, the oldest connections are dropped. If login_process_per_user# is no, this is a per-process value, so the absolute maximum number of users# logging in actually login_processes_count * max_logging_users.#login_max_logging_users = 256#### POP3 login process### Settings default to same as above, so you don't have to set anything# unless you want to override them.login = pop3# Exception to above rule being the executable location.#login_executable = /usr/libexec/dovecot/pop3-login#### Mail processes##/default # new users aren't allowed to log in.#max_mail_processes = 1024# Show more verbose process titles (in ps). Currently shows user name and# IP address. Useful for seeing who are actually using the IMAP processes# (eg. shared mailboxes or if same uid is used for multiple accounts).#verbose_proctitle = no# Show protocol level SSL errors.#verbose_ssl = no# Valid UID range for users, defaults to 500 and above. This is mostly# to make sure that users can't log in as daemons or other system users.# Note that denying root logins is hardcoded to dovecot binary and can't# be done even if first_valid_uid is set to 0.#first_valid_uid = 500#last_valid_uid = 0# Valid GID range for users, defaults to non-root/wheel. Users having# non-valid GID as primary group ID aren't allowed to log in. If user# belongs to supplementary groups with non-valid GIDs, those groups are# not set.#first_valid_gid = 1/default # doc/mail-storages.txt. There's a few special variables you can use:## %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n##default_mail_env =# Space-separated list of fields to cache for all mails. Currently these# fields are allowed followed by a list of commands they speed up:## Envelope - FETCH ENVELOPE and SEARCH FROM, TO, CC, BCC, SUBJECT,# SENTBEFORE, SENTON, SENTSINCE, HEADER MESSAGE-ID,# HEADER IN-REPLY-TO
那裏有教你怎樣設, 自己先試一試
# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n
引用# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n
# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n#default_mail_env = mbox:~/var/vmail/%d/%n#default_mail_env = maildir:/var/mail/%1u/%u/Maildir#default_mail_env = mbox:~/mail/:INBOX=/var/vmail/%u
[root@mail /]# tail /var/log/maillogMar 22 10:45:58 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 22 10:45:58 mail pop3(test): Invalid mbox file /home/test/var/vmail//test: No such file or directoryMar 22 10:45:58 mail pop3(test): Failed to create storage with data: mbox:/home/test/var/vmail//testMar 22 10:45:58 mail dovecot: child 23342 (pop3) returned error 89Mar 22 10:47:51 mail dovecot: Killed with signal 15Mar 22 10:47:51 mail dovecot: Dovecot starting upMar 22 10:47:56 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 22 10:47:56 mail pop3(test): Invalid mbox file /home/test/var/vmail//test: No such file or directoryMar 22 10:47:56 mail pop3(test): Failed to create storage with data: mbox:/home/test/var/vmail//testMar 22 10:47:56 mail dovecot: child 23369 (pop3) returned error 89
Mar 22 10:47:56 mail pop3(test): Failed to create storage with data: mbox:/home/test/var/vmail//test
請參考我這篇文章http://phorum.study-area.org/viewtopic.php?p=190058
[root@mail ~]# tail /var/log/maillogMar 22 11:50:02 mail MailScanner-MRTG[24641]: ERROR: iptraffic counters not fully initialised - no iptraffic data on this run. This is normal on the first run, or when the previous run was more than 5 minutes ago (e.g. when rebooting). If these errors persist over multiple runs please check that snmpd is running on your system. If you don't want to run snmp please ensure that you have disabled it in mailscanner-mrtg.conf. For more hints about snmp see README.SNMP in the docs directory Mar 22 11:51:33 mail dovecot: Killed with signal 15Mar 22 11:51:34 mail dovecot: Dovecot starting upMar 22 11:53:02 mail dovecot: Killed with signal 15Mar 22 11:54:29 mail dovecot: Dovecot starting upMar 22 11:55:02 mail MailScanner-MRTG[24820]: ERROR: iptraffic counters not fully initialised - no iptraffic data on this run. This is normal on the first run, or when the previous run was more than 5 minutes ago (e.g. when rebooting). If these errors persist over multiple runs please check that snmpd is running on your system. If you don't want to run snmp please ensure that you have disabled it in mailscanner-mrtg.conf. For more hints about snmp see README.SNMP in the docs directory Mar 22 11:55:15 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 22 11:55:15 mail pop3(test): Invalid mbox file /var/vmail//test: No such file or directoryMar 22 11:55:15 mail pop3(test): Failed to create storage with data: mbox:/var/vmail//testMar 22 11:55:15 mail dovecot: child 24891 (pop3) returned error 89
# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n#default_mail_env = mbox:/var/vmail/%d/%n#auth_userdb = hash:/etc/postfix/virtual_uids /etc/postfix/virtual_gids#auth_passwd = passwd-file /etc/passwd.mail#default_mail_env = maildir:/var/vmail/%n#default_mail_env = mbox:~/mail/:INBOX=/var/vmail/%u
引述: "paulso"請參考我這篇文章http://phorum.study-area.org/viewtopic.php?p=190058您好, 這篇文章我拜讀過了~~事實上我的狀況會有兩個以上的virtual domain, 這樣我就不知該怎麼辦了~~
代碼: [選擇][root@mail ~]# tail /var/log/maillogMar 22 11:50:02 mail MailScanner-MRTG[24641]: ERROR: iptraffic counters not fully initialised - no iptraffic data on this run. This is normal on the first run, or when the previous run was more than 5 minutes ago (e.g. when rebooting). If these errors persist over multiple runs please check that snmpd is running on your system. If you don't want to run snmp please ensure that you have disabled it in mailscanner-mrtg.conf. For more hints about snmp see README.SNMP in the docs directory Mar 22 11:51:33 mail dovecot: Killed with signal 15Mar 22 11:51:34 mail dovecot: Dovecot starting upMar 22 11:53:02 mail dovecot: Killed with signal 15Mar 22 11:54:29 mail dovecot: Dovecot starting upMar 22 11:55:02 mail MailScanner-MRTG[24820]: ERROR: iptraffic counters not fully initialised - no iptraffic data on this run. This is normal on the first run, or when the previous run was more than 5 minutes ago (e.g. when rebooting). If these errors persist over multiple runs please check that snmpd is running on your system. If you don't want to run snmp please ensure that you have disabled it in mailscanner-mrtg.conf. For more hints about snmp see README.SNMP in the docs directory Mar 22 11:55:15 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 22 11:55:15 mail pop3(test): Invalid mbox file /var/vmail//test: No such file or directoryMar 22 11:55:15 mail pop3(test): Failed to create storage with data: mbox:/var/vmail//testMar 22 11:55:15 mail dovecot: child 24891 (pop3) returned error 89代碼: [選擇]# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n#default_mail_env = mbox:/var/vmail/%d/%n#auth_userdb = hash:/etc/postfix/virtual_uids /etc/postfix/virtual_gids#auth_passwd = passwd-file /etc/passwd.mail#default_mail_env = maildir:/var/vmail/%n#default_mail_env = mbox:~/mail/:INBOX=/var/vmail/%u
引述: "nick6562"代碼: [選擇][root@mail ~]# tail /var/log/maillogMar 22 11:50:02 mail MailScanner-MRTG[24641]: ERROR: iptraffic counters not fully initialised - no iptraffic data on this run. This is normal on the first run, or when the previous run was more than 5 minutes ago (e.g. when rebooting). If these errors persist over multiple runs please check that snmpd is running on your system. If you don't want to run snmp please ensure that you have disabled it in mailscanner-mrtg.conf. For more hints about snmp see README.SNMP in the docs directory Mar 22 11:51:33 mail dovecot: Killed with signal 15Mar 22 11:51:34 mail dovecot: Dovecot starting upMar 22 11:53:02 mail dovecot: Killed with signal 15Mar 22 11:54:29 mail dovecot: Dovecot starting upMar 22 11:55:02 mail MailScanner-MRTG[24820]: ERROR: iptraffic counters not fully initialised - no iptraffic data on this run. This is normal on the first run, or when the previous run was more than 5 minutes ago (e.g. when rebooting). If these errors persist over multiple runs please check that snmpd is running on your system. If you don't want to run snmp please ensure that you have disabled it in mailscanner-mrtg.conf. For more hints about snmp see README.SNMP in the docs directory Mar 22 11:55:15 mail pop3-login: Login: test [::ffff:61.222.103.142]Mar 22 11:55:15 mail pop3(test): Invalid mbox file /var/vmail//test: No such file or directoryMar 22 11:55:15 mail pop3(test): Failed to create storage with data: mbox:/var/vmail//testMar 22 11:55:15 mail dovecot: child 24891 (pop3) returned error 89代碼: [選擇]# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain# %h - home directory## You can also limit a width of string by giving the number of max. characters# after the '%' character. For example %1u gives the first character of# username. Some examples:## default_mail_env = maildir:/var/mail/%1u/%u/Maildir# default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u# default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n#default_mail_env = mbox:/var/vmail/%d/%n#auth_userdb = hash:/etc/postfix/virtual_uids /etc/postfix/virtual_gids#auth_passwd = passwd-file /etc/passwd.mail#default_mail_env = maildir:/var/vmail/%n#default_mail_env = mbox:~/mail/:INBOX=/var/vmail/%u看來 %d 沒有東西, 試試 /etc/passwd 內的 username 是:user@domain.com
[root@mail ~]# cat /etc/passwdroot:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologinadm:x:3:4:adm:/var/adm:/sbin/nologinlp:x:4:7:lp:/var/spool/lpd:/sbin/nologinsync:x:5:0:sync:/sbin:/bin/syncshutdown:x:6:0:shutdown:/sbin:/sbin/shutdownhalt:x:7:0:halt:/sbin:/sbin/haltmail:x:8:12:mail:/var/spool/mail:/sbin/nologinnews:x:9:13:news:/etc/news:uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologinoperator:x:11:0:operator:/root:/sbin/nologingames:x:12:100:games:/usr/games:/sbin/nologingopher:x:13:30:gopher:/var/gopher:/sbin/nologinftp:x:14:50:FTP User:/var/ftp:/sbin/nologinnobody:x:99:99:Nobody:/:/sbin/nologindbus:x:81:81:System message bus:/:/sbin/nologinvcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologinnscd:x:28:28:NSCD Daemon:/:/sbin/nologinrpm:x:37:37::/var/lib/rpm:/sbin/nologinhaldaemon:x:68:68:HAL daemon:/:/sbin/nologinnetdump:x:34:34:Network Crash Dump user:/var/crash:/bin/bashsshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologinrpc:x:32:32:Portmapper RPC user:/:/sbin/nologinrpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologinnfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologinmailnull:x:47:47::/var/spool/mqueue:/sbin/nologinsmmsp:x:51:51::/var/spool/mqueue:/sbin/nologinpcap:x:77:77::/var/arpwatch:/sbin/nologinapache:x:48:48:Apache:/var/www:/sbin/nologinsquid:x:23:23::/var/spool/squid:/sbin/nologinwebalizer:x:67:67:Webalizer:/var/www/usage:/sbin/nologinxfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologinntp:x:38:38::/etc/ntp:/sbin/nologingdm:x:42:42::/var/gdm:/sbin/nologinhtt:x:100:101:IIIMF Htt:/usr/lib/im:/sbin/nologinnamed:x:25:25:Named:/var/named:/sbin/nologinnick:x:500:500:Nick Hsu:/home/nick:/bin/bashdovecot:x:97:97:dovecot:/usr/libexec/dovecot:/sbin/nologinpostfix:x:101:103::/home/postfix:/bin/falsejoin:x:501:501:Join Hsu:/home/join:/sbin/nologinpeggy:x:502:502:Peggy:/home/peggy:/sbin/nologinservice:x:503:503:Service:/home/service:/sbin/nologinluke:x:504:504:Luke:/home/luke:/sbin/nologinclamav:x:505:505:ClamAV User:/home/clamav:/bin/bashspam:x:506:506::/home/spam:/bin/bashnospam:x:507:507::/home/nospam:/bin/bashkim:x:509:509:Kim:/home/kim:/sbin/nologingary:x:510:510:Gary:/home/gary:/sbin/nologinivy:x:511:511:Ivy:/home/ivy:/sbin/nologintest:x:508:508:Test:/home/test:/sbin/nologin[root@mail ~]# cat /etc/passwd.mailtest@faylice.com.tw:h1S9i8dCermbc
引述: "paulso"看來 %d 沒有東西, 試試 /etc/passwd 內的 username 是:user@domain.com您好, 請教 %d 這個變數是在讀取 /etc/passwd 中的資料嗎?我不太懂您的意思~
看來 %d 沒有東西, 試試 /etc/passwd 內的 username 是:user@domain.com
# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain
引述: "nick6562"引述: "paulso"看來 %d 沒有東西, 試試 /etc/passwd 內的 username 是:user@domain.com您好, 請教 %d 這個變數是在讀取 /etc/passwd 中的資料嗎?我不太懂您的意思~ 引述: "/etc/dovecot.conf"# %u - username# %n - user part in user@domain, same as %u if there's no domain# %d - domain part in user@domain, empty if user there's no domain一試便知龍與鳳