PDA

View Full Version : my webmai and mail client can't login yet .


flourishing
7th December 2005, 19:25
mybox is rhel4 . and i installed apt-get . so i followed perfect install fc4.

and when i install mail server i havnot found the article said that imap . i only found cyrus-imapd , and i vi ed a file in etc to set ipop3 pop3d port opened.

and as the article said. telnet localhost 25 seems ok.

but now i can't loggin webmail .i can login by web ftp. and i used test@test.com test login webmail that i trust the username and password are ok. log file confirmed that.

below is the logfile .

Dec 8 01:35:28 freelamp pop3[774]: accepted connection
Dec 8 01:35:29 freelamp master[2298]: about to exec /usr/lib/cyrus-imapd/pop3d
Dec 8 01:35:29 freelamp pop3[2298]: executed
Dec 8 01:35:29 freelamp pop3[774]: login: freelamp [127.0.0.1] web6_test plaintext User logged in
Dec 8 01:35:32 freelamp pop3[774]: Unable to locate maildrop for web6_test: Mailbox does not exist
Dec 8 01:35:32 freelamp master[713]: process 774 exited, status 0

flourishing
7th December 2005, 19:30
i found a tip from google. and two lines after imapd.conf, and now it works . i can login . and also i can send out . but can't receive mail . and advices?

autocreatequota: -1
createonpost: yes

but i don't know what they mean. and also i was wondering . autocreatequota =-1 looks means some disk quota is this setting will effect the ispconfig mailbox quota ?

thanks

falko
7th December 2005, 21:42
Did you enable/disable Maildir in Management -> Server -> Settings -> Email? Try to change that setting.

flourishing
8th December 2005, 04:33
i have enabled that checkbox.
and the Maildir looks there .


[root@freelamp web6_test]# pwd
/home/www/web6/user/web6_test
[root@freelamp web6_test]# ls -al
total 128
drwxr-xr-x 4 web6_test web6 4096 Dec 8 01:33 .
drwxr-xr-x 3 apache web6 4096 Dec 8 01:33 ..
-rw-r--r-- 1 root root 544 Dec 8 01:35 .antivirus.rc
-rw-r--r-- 1 root root 748 Dec 8 01:35 .autoresponder.rc
-rw-r--r-- 1 root root 22 Dec 8 01:35 .bounce-exceed-quota.txt
-rw------- 1 web6_test web6 24 Dec 8 01:35 .forward
-rw-r--r-- 1 root root 67866 Dec 8 01:35 .html-trap.rc
-rw-r--r-- 1 root root 3889 Dec 8 01:35 .local-rules.rc
drwx------ 2 web6_test web6 4096 Dec 8 01:33 Maildir
-rw-r--r-- 1 root root 180 Dec 8 01:35 .mailsize.rc
-rw-r--r-- 1 root root 437 Dec 8 01:35 .procmailrc
-rw-r--r-- 1 root root 2664 Dec 8 01:35 .quota.rc
-rw-r--r-- 1 root root 1146 Dec 8 01:35 .spamassassin.rc
-rw-r--r-- 1 root root 1641 Dec 8 01:35 .user_prefs
-rw-r--r-- 1 root root 0 Dec 8 01:35 .vacation.msg
drwxrwxr-x 2 web6_test web6 4096 Dec 8 01:33 web
[root@freelamp web6_test]#


falko,can you tell me that tip from google will change my box something ?

till
8th December 2005, 12:01
If you followed the perfect setup nstructions, your google tip is not nescessray.

Are there any files in:

/home/www/web6/user/web6_test/Maildir/new/
/home/www/web6/user/web6_test/Maildir/cur/

if not, please post the output of:

ls -la /var/spool/mail/

Do you have a co-domain test.com (host is empty!) in the ispconfig website www.test.com?

falko
8th December 2005, 12:47
i have enabled that checkbox.
and the Maildir looks there .

Have you also tried with Maildir disabled?

flourishing
8th December 2005, 14:41
If you followed the perfect setup nstructions, your google tip is not nescessray.

Are there any files in:

/home/www/web6/user/web6_test/Maildir/new/
/home/www/web6/user/web6_test/Maildir/cur/

if not, please post the output of:

ls -la /var/spool/mail/

Do you have a co-domain test.com (host is empty!) in the ispconfig website www.test.com?

[root@freelamp Maildir]# ls -al
total 8
drwx------ 2 web6_test web6 4096 Dec 8 01:33 .
drwxr-xr-x 4 web6_test web6 4096 Dec 8 01:33 ..

there is no file directory in Maildir, maybe this is the problem.


and i have the true domain name jmugs981.org and the dns server is this server which runing ispconfig . and it works fine. and i create a dmain name . test.jmugs981.org. also fine .

flourishing
8th December 2005, 14:44
Did you enable/disable Maildir in Management -> Server -> Settings -> Email? Try to change that setting.

i have tried . disabled then try webmail can't login. enable also can't login.

make me crazy.

thank you for you guys' s help.

falko
8th December 2005, 17:55
I think that Cyrus is the problem. Try to remove it and install another POP3 server such as Courier. Maybe dovecot will also do ( http://www.howtoforge.com/forums/showthread.php?t=1432 ).

When you have Maildir enabled and send a mail to yourself, what's the output of

ls -la /home/www/web6/user/web6_test/Maildir afterwards? At least the mails should arrive in there.

flourishing
8th December 2005, 19:21
I think that Cyrus is the problem. Try to remove it and install another POP3 server such as Courier. Maybe dovecot will also do ( http://www.howtoforge.com/forums/showthread.php?t=1432 ).

When you have Maildir enabled and send a mail to yourself, what's the output of

ls -la /home/www/web6/user/web6_test/Maildir afterwards? At least the mails should arrive in there.

when i send a mail the dir you said /home/www/web6/user/web6_test/Maildir
have nothing.

below is the maillog.

Dec 9 01:39:41 freelamp postfix/smtp[26478]: DD14C3459F: to=<jiangpeirong@qingdao.gov.cn>, relay=isvwlx.qingdao.gov.cn[202.110.193.32], delay=1, status=sent (250 ok)
Dec 9 01:39:41 freelamp postfix/qmgr[26313]: DD14C3459F: removed
Dec 9 01:39:56 freelamp pop3[26340]: accepted connection
Dec 9 01:39:56 freelamp master[26483]: about to exec /usr/lib/cyrus-imapd/pop3d
Dec 9 01:39:56 freelamp pop3[26483]: executed
Dec 9 01:39:57 freelamp pop3[26340]: login: [58.212.82.94] web7_test plaintext User logged in
Dec 9 01:40:00 freelamp pop3[26340]: Unable to locate maildrop for web7_test: Mailbox does not exist
Dec 9 01:40:07 freelamp master[20463]: process 26340 exited, status 0

flourishing
8th December 2005, 21:15
as the advices i removed cyrus-imapd. and installed dovcat . service has been started . and checked, found that it can send out . but can't receive.

too bad.

also i tried to add a system user . but problem is same can't receive but can send out.

any more help .

flourishing
8th December 2005, 21:26
and i found that , all the mail from the other maiserver sended out are returned back . why ?maybe this is a key to this problem

falko
8th December 2005, 23:05
and i found that , all the mail from the other maiserver sended out are returned back . why ?maybe this is a key to this problem
Is there an error message in the returned mails? What's in the mail log?

flourishing
9th December 2005, 04:40
here is the msg
This is the Postfix program at host mx2.qingdao.cn.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster >

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<admin@jmugs981.org >: host jmugs981.org[211.144.137.88] said: 554
<admin@jmugs981.org >: Relay access denied (in reply to RCPT TO command)

Reporting-MTA: dns; mx2.qingdao.cn
Arrival-Date: Fri, 9 Dec 2005 02:40:39 +0800 (CST)

Final-Recipient: rfc822; admin@jmugs981.org
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host jmugs981.org[211.144.137.88] said: 554
<admin@jmugs981.org >: Relay access denied (in reply to RCPT TO command)

falko
9th December 2005, 12:00
Make sure admin@jmugs981.org is in /etc/postfix/virtusertable, and jmugs981.org is in /etc/postfix/local-host-names.

flourishing
10th December 2005, 11:37
:mad:

i reinstalled my ispconfig.
and now dns works fine.
but mail .....
i create a client test , and a website test . create a mail user tt.
tt@jmugs981.org user web1_tt passwd tt .

and now user tt can login from webmail or web client such as outlook .

mail send out works fine. but can't receive mail . and i tried to send a mail to tt@jmugs981.org from the other mail server .
but i can't receive it . and the mail used to send the mail has no message , seems has sended the mail
also i have tried to enable and disable in server settings that mail dir.
i checked virtusertable and the local-host-names seems ok .tt is on the virtuesertable and jmugs981.org in local-host-named .

what can i do?

falko
10th December 2005, 14:03
Is 211.144.137.88 your public IP address? You don't have an MX record for jmugs981.org.

If your server is in a local network behind a router: did yiu forward port 25 from your router to your server?
Do you see anything in the mail log when you send a mail to tt@jmugs981.org? I suggest that you run
tail -f /path/to/maillog
and then send a mail to that email address and have a look what happens in your log.

flourishing
10th December 2005, 15:09
see.
this is the log when i use jiangpeirong@qingdao.gov.cn to send a mail to tt@jmugs981.org

Dec 10 21:29:35 freelamp postfix/qmgr[11253]: 0066B34598: from=<jiangpeirong@qingdao.gov.cn>, size=1785, nrcpt=1 (queue active)
Dec 10 21:29:35 freelamp postfix/smtp[17495]: 0066B34598: to=<web1_tt@freelamp.jmugs981.org>, orig_to=<tt@jmugs981.org>, relay=none, delay=1, status=bounced ([freelamp.jmugs981.org]: Name or service not known)
Dec 10 21:29:35 freelamp postfix/cleanup[17493]: BEA6D3459A: message-id=<20051210132935.BEA6D3459A@freelamp.jmugs981.org>
Dec 10 21:29:35 freelamp postfix/qmgr[11253]: BEA6D3459A: from=<>, size=3647, nrcpt=1 (queue active)
Dec 10 21:29:35 freelamp postfix/qmgr[11253]: 0066B34598: removed
Dec 10 21:29:38 freelamp postfix/smtp[17498]: BEA6D3459A: to=<jiangpeirong@qingdao.gov.cn>, relay=isvwlx.qingdao.gov.cn[202.110.193.32], delay=3, status=sent (250 ok)
Dec 10 21:29:38 freelamp postfix/qmgr[11253]: BEA6D3459A: removed


but i can't see anything error.

and also jiangpeirong@qingdao.gov.cn doensn't have any msg returned such as deleve failed or the err else.

and this pic shows the mx i set. does it has a problem?

falko
10th December 2005, 16:14
Dec 10 21:29:35 freelamp postfix/smtp[17495]: 0066B34598: to=<web1_tt@freelamp.jmugs981.org>, orig_to=<tt@jmugs981.org>, relay=none, delay=1, status=bounced ([freelamp.jmugs981.org]: Name or service not known)

There's the error: I guess freelamp.jmugs981.org is your hostname. Create an A record for it that points to your server.

and this pic shows the mx i set. does it has a problem?
You should use a FQDN like mail.example.com instead of an IP address as mail server. And, of course, your name server (the ISPConfig server) must be authoritative for your domain otherwise you can create as many records as you want, but it will have no effect...

till
10th December 2005, 16:19
And if you enter it like this, the MX record is for email addresses like ...@mx.jmugs981.org. In most cases the host field for the MX records must be empty!

flourishing
10th December 2005, 16:41
hereis the new dns

still can receive any mail (and yes . ispconfig manage my dns server .it works .)

till
10th December 2005, 18:32
You know that changes in DNS can take up to 48 hours until all caching DNS Servers have read the new values?

flourishing
10th December 2005, 22:36
i know , but the dns server is the localhost . basicly , nslookup can find the new dns entry 2or 3 seconds.

falko
11th December 2005, 15:17
It should work now:

~# dig freelamp.jmugs981.org

; <<>> DiG 9.2.1 <<>> freelamp.jmugs981.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17674
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;freelamp.jmugs981.org. IN A

;; ANSWER SECTION:
freelamp.jmugs981.org. 86400 IN A 211.144.137.88

;; AUTHORITY SECTION:
jmugs981.org. 86359 IN NS dns2.jmugs981.org.
jmugs981.org. 86359 IN NS ns1.dns-diy.com.

;; ADDITIONAL SECTION:
ns1.dns-diy.com. 172221 IN A 210.51.187.81
dns2.jmugs981.org. 86323 IN A 211.144.137.88

;; Query time: 666 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sun Dec 11 14:13:07 2005
;; MSG SIZE rcvd: 135


~# dig jmugs981.org

; <<>> DiG 9.2.1 <<>> jmugs981.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21240
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;jmugs981.org. IN A

;; ANSWER SECTION:
jmugs981.org. 86400 IN A 211.144.137.88

;; AUTHORITY SECTION:
jmugs981.org. 86389 IN NS ns1.dns-diy.com.
jmugs981.org. 86389 IN NS dns2.jmugs981.org.

;; ADDITIONAL SECTION:
ns1.dns-diy.com. 172251 IN A 210.51.187.81
dns2.jmugs981.org. 86353 IN A 211.144.137.88

;; Query time: 667 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sun Dec 11 14:12:38 2005
;; MSG SIZE rcvd: 126

~# dig mx jmugs981.org

; <<>> DiG 9.2.1 <<>> mx jmugs981.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58470
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;jmugs981.org. IN MX

;; ANSWER SECTION:
jmugs981.org. 86400 IN MX 10 mail.jmugs981.org.

;; AUTHORITY SECTION:
jmugs981.org. 86400 IN NS ns1.dns-diy.com.
jmugs981.org. 86400 IN NS dns2.jmugs981.org.

;; ADDITIONAL SECTION:
mail.jmugs981.org. 86400 IN A 211.144.137.88
ns1.dns-diy.com. 172262 IN A 210.51.187.81
dns2.jmugs981.org. 86364 IN A 211.144.137.88

;; Query time: 648 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sun Dec 11 14:12:26 2005
;; MSG SIZE rcvd: 147


~# dig mail.jmugs981.org

; <<>> DiG 9.2.1 <<>> mail.jmugs981.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7371
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;mail.jmugs981.org. IN A

;; ANSWER SECTION:
mail.jmugs981.org. 86371 IN A 211.144.137.88

;; AUTHORITY SECTION:
jmugs981.org. 86371 IN NS dns2.jmugs981.org.
jmugs981.org. 86371 IN NS ns1.dns-diy.com.

;; ADDITIONAL SECTION:
ns1.dns-diy.com. 172233 IN A 210.51.187.81
dns2.jmugs981.org. 86335 IN A 211.144.137.88

;; Query time: 2 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sun Dec 11 14:12:55 2005
;; MSG SIZE rcvd: 131

If it still doesn't work, have a look at your mail log.