Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th June 2011, 21:23
jstd jstd is offline
Junior Member
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Post postfix - /home/vmail is not created

Hello,

I'm following this HowTo:
https://help.ubuntu.com/community/Po...ailSystemHowto
when I try to log in with squirrelmail, I get this ERROR: Connection dropped by IMAP server.

The problem might be, that there are no files or directorys in /home/vmail

Creating domains and mailadresses with Postfixadmin works perfectly fine (checked it with phpmyadmin), but no direcotrys are created.

the logfile, while sending the welcome mail shows me:

Code:
Jun  7 21:11:20 jstdEU postfix/smtpd[9265]: connect from localhost.localdomain[127.0.0.1]
Jun  7 21:11:20 jstdEU postfix/smtpd[9265]: 226E52108C24: client=localhost.localdomain[127.0.0.1]
Jun  7 21:11:20 jstdEU postfix/cleanup[9269]: 226E52108C24: message-id=<20110607191120.226E52108C24@XXX.dyndns-blog.com>
,Jun  7 21:11:20 jstdEU postfix/smtpd[9265]: disconnect from localhost.localdomain[127.0.0.1]
Jun  7 21:11:20 jstdEU postfix/qmgr[9259]: 226E52108C24: from=<admin@XXX.dyndns-blog.com>, size=598, nrcpt=1 (queue active)
Jun  7 21:11:20 jstdEU postfix/error[9271]: 226E52108C24: to=<mailbox@XXX.dyndns-blog.com/>, orig_to=<mailbox@XXX.dyndns-blog.com>, relay=none, delay=0.81, delays=0.55/0.01/0/0.26, dsn=5.1.3, status=bounced (bad address syntax)
Jun  7 21:11:20 jstdEU postfix/cleanup[9269]: E790C2108C28: message-id=<20110607191120.E790C2108C28@XXX.dyndns-blog.com>
Jun  7 21:11:21 jstdEU postfix/qmgr[9259]: E790C2108C28: from=<>, size=2810, nrcpt=1 (queue active)
Jun  7 21:11:21 jstdEU postfix/bounce[9272]: 226E52108C24: sender non-delivery notification: E790C2108C28
Jun  7 21:11:21 jstdEU postfix/qmgr[9259]: 226E52108C24: removed
Jun  7 21:11:21 jstdEU postfix/virtual[9274]: E790C2108C28: to=<admin@XXX.dyndns-blog.com>, relay=virtual, delay=0.35, delays=0.21/0.01/0/0.13, dsn=5.1.1, status=bounced (unknown user: "admin@XXX.dyndns-blog.com")
Jun  7 21:11:21 jstdEU postfix/qmgr[9259]: E790C2108C28: removed
my main.cf:
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = XXX.dyndns-blog.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

# Virtual Mailbox Domain Settings

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_limit = 51200000
virtual_minimum_uid = 5000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_transport = virtual

# Additional for quota support

virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the your maildir has overdrawn your diskspace quo$
virtual_overquota_bounce = yes
vmail is owner of /home/vmail:
Code:
cd /home
chown -R vmail.vmail vmail
Can anyone help?
Thanks, johannes

P.s.: I skipped the part installing and setting up SMTP authentication, but I thinks thats fine...
Reply With Quote
Sponsored Links
  #2  
Old 8th June 2011, 09:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

The directory is created by postfix when the first email arrives in the mailbox.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th June 2011, 10:55
jstd jstd is offline
Junior Member
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
The directory is created by postfix when the first email arrives in the mailbox.
well, exactly this is the problem.
It is NOT created and the mail is not delivered --> see "status=bounced (bad address syntax" in the logfile
Reply With Quote
  #4  
Old 21st June 2011, 16:55
yasuni yasuni is offline
Junior Member
 
Join Date: Jun 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

chek if vmail is owend bij vmail

Code:
root@localhost#ls -la /home
example
Code:
drwx------   5 vmail                  vmail                   4096 Jun  9 20:47 vmail
Reply With Quote
  #5  
Old 21st December 2012, 15:05
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation

Same problem here. Sending a message to a newly vmail mailbox does not generate the mail dirs.

The perms seem correct:
drwxr-xr-x 2 vmail vmail 4096 Dec 2 23:45

Followed this tutorial:
http://www.howtoforge.com/virtual-us...untu-12.04-lts

Last edited by nzimas; 21st December 2012 at 15:15.
Reply With Quote
  #6  
Old 21st December 2012, 15:17
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Question

Found the point of failure, although it should not happen.

According to the postfix log:
127.0.0.1[127.0.0.1]:10024: Connection refused

However, telnet tells a different tale:
root@langata:/usr/src# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix (Ubuntu)

I'm puzzled.
Reply With Quote
  #7  
Old 22nd December 2012, 15:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by nzimas View Post
Found the point of failure, although it should not happen.

According to the postfix log:
127.0.0.1[127.0.0.1]:10024: Connection refused
Looks like amavisd (which should be running on port 10024) isn't running. Please restart it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 22nd December 2012, 18:09
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Amavis is definitely running and listening on port 10024

Code:
root@langata:/home/administrator# netstat -tap | grep amavis
tcp        0      0 localhost:10024         *:*                     LISTEN      1697/amavisd (maste
root@langata:/home/administrator#
Reply With Quote
  #9  
Old 24th December 2012, 12:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Please restart it and try again.

Did you check if your server is running out of memory?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
created, postfix, vmail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
Email being accepted but not delivered punto Installation/Configuration 8 25th May 2011 00:13
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
RoundCube Sends but will not receive. happz Installation/Configuration 33 17th April 2010 21:55


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


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