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)
-   -   UebiMiau locks out after server receives email (http://www.howtoforge.com/forums/showthread.php?t=3316)

sbecker 24th March 2006 09:29

UebiMiau locks out after server receives email
 
Like another user on here, I cannot receive email. I think it maybe a seperate issue though, because the mail is being delivered into the file, but UebiMiau locks up and wont let me in!

I have setup a VPS server using the Perfect Debian 3.1 setup. Then installed ISPConfig. I have DNS configured for one domain at Everydns.net to point to my server. I created a site and a user, and from that user, sent an email to my standard gmail email address, which I received. I responded from there to test receiving email.

Now when I try to login to UebiMiau it locks up for like a minute and I eventually get an error: "Login error - You cannot login with the username and password entered. Please check your username and password and try again."

I am using the same username and password which worked the first time! I tried it with two seperate accounts and confirmed UebiMiau locks a user out up as soon as an email is received for a user.

Mail is being put into /var/mail/web1_sbecker. The email is making it to the server, because I can see it in the file! But it seems that as soon as something is in the inbox, I can no longer login to UebiMiau.

Here are the last few lines of my /var/log/mail.log

Code:

Mar 23 23:34:47 server1 ipop3d[10059]: Mailbox vulnerable - directory /var/mail must have 1777 protection
Mar 23 23:34:47 server1 ipop3d[10059]: Login user=web1_sbecker host=vps [127.0.0.1] nmsgs=2/2
Mar 23 23:34:47 server1 ipop3d[10059]: Command stream end of file while reading line user=web1_sbecker host=vps [127.0.0.1]
Mar 23 23:39:49 server1 ipop3d[10059]: Mailbox vulnerable - directory /var/mail must have 1777 protection
Mar 23 23:49:06 server1 ipop3d[10420]: pop3 service init from 127.0.0.1
Mar 23 23:54:08 server1 ipop3d[10420]: Mailbox vulnerable - directory /var/mail must have 1777 protection
Mar 23 23:54:08 server1 ipop3d[10420]: Login user=web1_sbecker host=vps [127.0.0.1] nmsgs=2/2
Mar 23 23:54:08 server1 ipop3d[10420]: Command stream end of file while reading line user=web1_sbecker host=vps [127.0.0.1]
Mar 23 23:59:10 server1 ipop3d[10420]: Mailbox vulnerable - directory /var/mail must have 1777 protection

netstat -tap output:

Code:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
tcp        0      0 *:imaps                *:*                    LISTEN    6524/inetd
tcp        0      0 *:pop3s                *:*                    LISTEN    6524/inetd
tcp        0      0 vps:mysql              *:*                    LISTEN    12800/mysqld
tcp        0      0 *:pop3                  *:*                    LISTEN    6524/inetd
tcp        0      0 *:imap2                *:*                    LISTEN    6524/inetd
tcp        0      0 *:www                  *:*                    LISTEN    8137/apache2
tcp        0      0 *:81                    *:*                    LISTEN    8103/ispconfig_http
tcp        0      0 *:ftp                  *:*                    LISTEN    8904/proftpd: (acce
tcp        0      0 server1.electroi:domain *:*                    LISTEN    8267/named
tcp        0      0 vps:domain              *:*                    LISTEN    8267/named
tcp        0      0 *:ssh                  *:*                    LISTEN    4088/sshd
tcp        0      0 *:smtp                  *:*                    LISTEN    11051/master
tcp        0      0 vps:953                *:*                    LISTEN    8267/named
tcp        0      0 *:https                *:*                    LISTEN    8137/apache2
tcp        0    52 server1.electrointe:ssh 148-103.35-65.tamp:3511 ESTABLISHED10305/0

my /etc/postfix/main.cf (domain changed to xyz.net)

Code:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = server1.xyz.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.xyz.net, localhost.xyz.net, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names

Here are my ISPConfig email settings:

MTA Type: Postfix
Virtuser File: /etc/postfix/virtusertable
Sendmail CW: /etc/postfix/local-host-names
Mail Log: /var/log/mail.log
Save Log: No
Maildir: No
Antivirus-Admin: admispconfig@localhost
Spamfilter: Yes

Also, I did not install Courier-IMAP/Courier-POP3, should I have done this?

I would appreciate your help please!

falko 24th March 2006 20:23

Please run
Code:

chmod 1777 /var/mail
and try again.

sbecker 25th March 2006 00:00

It works! I could smack myself, that seems so obvious. I'd just never seen chmod 1777 before. Thanks!

Scott


All times are GMT +2. The time now is 12:40.

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