HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Verify email setup (http://www.howtoforge.com/forums/showthread.php?t=7183)

meekish 1st October 2006 11:40

Verify email setup
 
I went through the tutorial here on howtoforge for setting up the perfect ubuntu dapper server. I then installed ISPConfig. Everything with ISPConfig seems to be working fine, except for email. I have deployed four sites using ISPConfig and have created email users for each, but I still can't login to my POP3 server using the accounts ISPConfig created.

Where do I need to look to begin troubleshooting?

edge 1st October 2006 12:02

Are you using the ISPconfig's "User" name as account name in your email client, or the email address?

If it's the email address, change it to the User name (web1_info, or whatever it is on your system for that email address), and try again

meekish 2nd October 2006 06:04

Quote:

Originally Posted by edge
Are you using the ISPconfig's "User" name as account name in your email client, or the email address?

If it's the email address, change it to the User name (web1_info, or whatever it is on your system for that email address), and try again

I've tried logging in with just the User name, but to no avail. In my email client, it just tells me that the password was rejected. Here's the tail of my /var/log/mail.log file:

Code:

Oct  2 03:57:32 reformationstudios courierpop3login: LOGIN FAILED, ip=[::ffff:69.92.207.127]
Oct  2 03:57:33 reformationstudios courierpop3login: LOGOUT, ip=[::ffff:69.92.207.127]
Oct  2 03:57:37 reformationstudios courierpop3login: Connection, ip=[::ffff:69.92.207.127]
Oct  2 03:57:37 reformationstudios courierpop3login: chdir "/var/www/web3/user/web3_jhurt": Permission denied


I tried changing my password for this user to a couple of different things, but still can't seem to get in. Does the permission denied line in the log mean that my password was incorrect, or that the courierpop3login process doesn't have adequate permissions to access the file that stores the passwords?

Also, is the address of my POP3 server just www.mydomain.com, or mydomain.com, or mail.mydomain.com?

till 2nd October 2006 12:06

Have you enabled the "Maildir" Checkbox in ISPConfig under Management > server > settings?

What is the output of:

ls -la /var/www/web3/user/

Quote:

Also, is the address of my POP3 server just www.mydomain.com, or mydomain.com, or mail.mydomain.com?
That depends on your DNS setup. You can use any domain that points to your server IP.

meekish 2nd October 2006 18:47

I did not have the "maildir" checkbox enabled...

Here is the output before enabling that checkbox
Code:

ls -la /var/www/web3/user
total 4
drwxr-xr-x 4 www-data web3 1024 Sep  9 23:08 .
drwxr-xr-x 8 www-data web3 1024 Sep 12 04:10 ..
-r-------- 1 root    root    0 Sep  9 22:55 .no_delete
drwxr-xr-x 3 meekish  web3 1024 Sep  9 22:56 web3_jhurt
drwxr-xr-x 3 meekish  web3 1024 Sep 12 04:10 web3_test

And the output after enabling that checkbox and adding another user "jed.hurt" :

Code:

ls -la /var/www/web3/user
total 5
drwxr-xr-x 5 www-data      web3 1024 Oct  2 16:43 .
drwxr-xr-x 8 www-data      web3 1024 Sep 12 04:10 ..
-r-------- 1 root          root    0 Sep  9 22:55 .no_delete
drwxr-xr-x 4 web3_jed.hurt web3 1024 Oct  2 16:43 web3_jed.hurt
drwxr-xr-x 4 meekish      web3 1024 Oct  2 16:41 web3_jhurt
drwxr-xr-x 3 meekish      web3 1024 Sep 12 04:10 web3_test

And here's the tail of my mail.log file after trying to check the email of the new user I just created:

Code:

Oct  2 16:43:09 reformationstudios postfix/master[14203]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Oct  2 16:43:09 reformationstudios postfix/master[14203]: warning: inet_protocols: configuring for IPv4 support only
Oct  2 16:43:09 reformationstudios postfix/master[14203]: daemon started -- version 2.2.10, configuration /etc/postfix
Oct  2 16:43:09 reformationstudios postfix/pickup[14219]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Oct  2 16:43:09 reformationstudios postfix/pickup[14219]: warning: inet_protocols: configuring for IPv4 support only
Oct  2 16:43:09 reformationstudios postfix/qmgr[14220]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Oct  2 16:43:09 reformationstudios postfix/qmgr[14220]: warning: inet_protocols: configuring for IPv4 support only
Oct  2 16:43:30 reformationstudios courierpop3login: Connection, ip=[::ffff:69.92.207.127]
Oct  2 16:43:35 reformationstudios courierpop3login: LOGIN FAILED, ip=[::ffff:69.92.207.127]
Oct  2 16:43:35 reformationstudios courierpop3login: LOGOUT, ip=[::ffff:69.92.207.127]
Oct  2 16:45:39 reformationstudios courierpop3login: Connection, ip=[::ffff:69.92.207.127]
Oct  2 16:45:45 reformationstudios courierpop3login: LOGIN FAILED, ip=[::ffff:69.92.207.127]
Oct  2 16:45:45 reformationstudios courierpop3login: LOGOUT, ip=[::ffff:69.92.207.127]


falko 3rd October 2006 17:18

Quote:

Originally Posted by meekish
I did not have the "maildir" checkbox enabled...

Here is the output before enabling that checkbox
Code:

ls -la /var/www/web3/user
total 4
drwxr-xr-x 4 www-data web3 1024 Sep  9 23:08 .
drwxr-xr-x 8 www-data web3 1024 Sep 12 04:10 ..
-r-------- 1 root    root    0 Sep  9 22:55 .no_delete
drwxr-xr-x 3 meekish  web3 1024 Sep  9 22:56 web3_jhurt
drwxr-xr-x 3 meekish  web3 1024 Sep 12 04:10 web3_test

And the output after enabling that checkbox and adding another user "jed.hurt" :

Code:

ls -la /var/www/web3/user
total 5
drwxr-xr-x 5 www-data      web3 1024 Oct  2 16:43 .
drwxr-xr-x 8 www-data      web3 1024 Sep 12 04:10 ..
-r-------- 1 root          root    0 Sep  9 22:55 .no_delete
drwxr-xr-x 4 web3_jed.hurt web3 1024 Oct  2 16:43 web3_jed.hurt
drwxr-xr-x 4 meekish      web3 1024 Oct  2 16:41 web3_jhurt
drwxr-xr-x 3 meekish      web3 1024 Sep 12 04:10 web3_test


Please run
Code:

chown web3_jhurt /var/www/web3/user/web3_jhurt
chown web3_test /var/www/web3/user/web3_test

When you want to log in with your email client to the web3_jhurt account, you're using the usernamr web3_jhurt, right?

What's the output of
Code:

ls -la /var/www/web3/user/web3_jhurt
?

meekish 5th October 2006 07:46

Here is the output after chowning those directories:

Code:

ls -la /var/www/web3/user/web3_jhurt
total 87
drwxr-xr-x 4 web3_jhurt web3  1024 Oct  2 16:41 .
drwxr-xr-x 5 meekish    web3  1024 Oct  2 16:43 ..
-rw-r--r-- 1 meekish    root  103 Oct  2 16:41 .antivirus.rc
-rw-r--r-- 1 meekish    root  789 Oct  2 16:41 .autoresponder.rc
-rw------- 1 meekish    web3    24 Oct  2 16:41 .forward
-rw-r--r-- 1 meekish    root 67866 Oct  2 16:41 .html-trap.rc
-rw-r--r-- 1 meekish    root  3889 Oct  2 16:41 .local-rules.rc
-rw-r--r-- 1 meekish    root  204 Oct  2 16:41 .mailsize.rc
-rw-r--r-- 1 meekish    root  451 Oct  2 16:41 .procmailrc
-rw-r--r-- 1 meekish    root  656 Oct  2 16:41 .quota.rc
-rw-r--r-- 1 meekish    root  1146 Oct  2 16:41 .spamassassin.rc
-rw-r--r-- 1 meekish    root  2010 Oct  2 16:41 .user_prefs
-rw-r--r-- 1 meekish    root    32 Oct  2 16:41 .vacation.msg
drwx------ 5 meekish    web3  1024 Oct  2 16:41 Maildir
drwxrwxr-x 2 meekish    web3  1024 Sep  9 22:56 web

I'm still unable to login using my POP3 client...

till 5th October 2006 10:39

You have to change the owner to recursively.

Please login as root and execute the command:

Quote:

chown -R web3_jhurt:web3 /var/www/web3/user/web3_jhurt
Quote:

chown -R web3_test:web3 /var/www/web3/user/web3_test

meekish 7th October 2006 02:33

I ran the chown recursively. I'm still unable to login... Here is a recurvsive listing of the web3_jhurt directory:

Code:

ls web3_jhurt -Rla
web3_jhurt:
total 87
drwxr-xr-x 4 web3_jhurt web3  1024 Oct  2 16:41 .
drwxr-xr-x 5 www-data  web3  1024 Oct  2 16:43 ..
-rw-r--r-- 1 web3_jhurt web3  103 Oct  2 16:41 .antivirus.rc
-rw-r--r-- 1 web3_jhurt web3  789 Oct  2 16:41 .autoresponder.rc
-rw------- 1 web3_jhurt web3    24 Oct  2 16:41 .forward
-rw-r--r-- 1 web3_jhurt web3 67866 Oct  2 16:41 .html-trap.rc
-rw-r--r-- 1 web3_jhurt web3  3889 Oct  2 16:41 .local-rules.rc
-rw-r--r-- 1 web3_jhurt web3  204 Oct  2 16:41 .mailsize.rc
-rw-r--r-- 1 web3_jhurt web3  451 Oct  2 16:41 .procmailrc
-rw-r--r-- 1 web3_jhurt web3  656 Oct  2 16:41 .quota.rc
-rw-r--r-- 1 web3_jhurt web3  1146 Oct  2 16:41 .spamassassin.rc
-rw-r--r-- 1 web3_jhurt web3  2010 Oct  2 16:41 .user_prefs
-rw-r--r-- 1 web3_jhurt web3    32 Oct  2 16:41 .vacation.msg
drwx------ 5 web3_jhurt web3  1024 Oct  2 16:41 Maildir
drwxrwxr-x 2 web3_jhurt web3  1024 Sep  9 22:56 web

web3_jhurt/Maildir:
total 5
drwx------ 5 web3_jhurt web3 1024 Oct  2 16:41 .
drwxr-xr-x 4 web3_jhurt web3 1024 Oct  2 16:41 ..
drwx------ 2 web3_jhurt web3 1024 Oct  2 16:41 cur
drwx------ 2 web3_jhurt web3 1024 Oct  2 16:41 new
drwx------ 2 web3_jhurt web3 1024 Oct  2 16:41 tmp

web3_jhurt/Maildir/cur:
total 2
drwx------ 2 web3_jhurt web3 1024 Oct  2 16:41 .
drwx------ 5 web3_jhurt web3 1024 Oct  2 16:41 ..

web3_jhurt/Maildir/new:
total 2
drwx------ 2 web3_jhurt web3 1024 Oct  2 16:41 .
drwx------ 5 web3_jhurt web3 1024 Oct  2 16:41 ..

web3_jhurt/Maildir/tmp:
total 2
drwx------ 2 web3_jhurt web3 1024 Oct  2 16:41 .
drwx------ 5 web3_jhurt web3 1024 Oct  2 16:41 ..

web3_jhurt/web:
total 4
drwxrwxr-x 2 web3_jhurt web3 1024 Sep  9 22:56 .
drwxr-xr-x 4 web3_jhurt web3 1024 Oct  2 16:41 ..
-rwxrwxr-x 1 web3_jhurt web3 1197 Sep  9 22:56 index.html

I sent an email to jhurt@reformationstudios.com and did not get a returned to sender email, but my mail.log now looks like this:

Code:

Oct  7 00:31:09 reformationstudios postfix/postdrop[25656]: warning: mail_queue_enter: create file maildrop/343316.25656: Permission denied
Oct  7 00:31:09 reformationstudios postfix/postdrop[25612]: warning: mail_queue_enter: create file maildrop/343491.25612: Permission denied
Oct  7 00:31:14 reformationstudios postfix/postdrop[25799]: warning: mail_queue_enter: create file maildrop/955896.25799: Permission denied
Oct  7 00:31:19 reformationstudios postfix/postdrop[25656]: warning: mail_queue_enter: create file maildrop/344780.25656: Permission denied
Oct  7 00:31:19 reformationstudios postfix/postdrop[25612]: warning: mail_queue_enter: create file maildrop/344789.25612: Permission denied
Oct  7 00:31:24 reformationstudios postfix/postdrop[25799]: warning: mail_queue_enter: create file maildrop/957392.25799: Permission denied
Oct  7 00:31:29 reformationstudios postfix/postdrop[25656]: warning: mail_queue_enter: create file maildrop/345266.25656: Permission denied
Oct  7 00:31:29 reformationstudios postfix/postdrop[25612]: warning: mail_queue_enter: create file maildrop/345269.25612: Permission denied
Oct  7 00:31:31 reformationstudios courierpop3login: Connection, ip=[::ffff:69.92.207.127]
Oct  7 00:31:32 reformationstudios courierpop3login: chdir "/var/www/web3/user/web3_jhurt": Permission denied
Oct  7 00:31:34 reformationstudios postfix/postdrop[25799]: warning: mail_queue_enter: create file maildrop/958869.25799: Permission denied
Oct  7 00:31:38 reformationstudios courierpop3login: Connection, ip=[::ffff:69.92.207.127]
Oct  7 00:31:38 reformationstudios courierpop3login: chdir "/var/www/web3/user/web3_jhurt": Permission denied

Looks like the postfix process is trying to write the received email file to maildir, but can't get directory permissions?

meekish 7th October 2006 19:40

Is it hopeless? :(


All times are GMT +2. The time now is 22:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.