LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-20-2012, 06:39 PM   #1
chanjay
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Rep: Reputation: Disabled
Mail server does not create user folders.


Hello,

I am a newbie in this field...but I would like to setup a mail server.

I am following this guide.

http://www.howtoforge.com/virtual-us...u-12.04-lts-p4


On step 13, after creating users with MySQl, the users are listed in the database but the system itself does not create the user folders in the mail directories even though the SQL seems to be functioning correctly. I'm not exactly sure what cause of this. The home/vmail/ folder has full permissions.

I've checked the error logs and this is the output:

Jul 18 16:47:10 mail imapd: sales@xxxxx.com: No such file or
directory
Jul 18 17:47:05 mail imapd: Connection, ip=[::ffff:127.0.0.1]
Jul 18 17:47:05 mail imapd: chdir xxxxx.com/sales/: No such
file
or directory

The Linux distro is Ubuntu server 12.04.

Please help?

Thanks.

hc.
 
Old 07-21-2012, 12:09 AM   #2
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi
Try to telnet to port 25 .check whether you are getting out the following output

#telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 plato.example.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-plato.example.com
250-PIPELINING
250-SIZE 30720000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
 
Old 07-21-2012, 01:39 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Can you please post output of following command

postconf -n
 
Old 07-23-2012, 10:57 AM   #4
chanjay
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi arun5002, here is the result:

telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.xxxxx.com ESMTP Postfix (Ubuntu)



Hi Vishesh, here is the result:

postconf -n

502 5.5.2 Error: command not recognized

hc.
 
Old 07-23-2012, 11:00 AM   #5
chanjay
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi Vishesh,

Another delayed message:


421 4.4.2 mail.xxxxx.com Error: timeout exceeded
Connection closed by foreign host.


hc.
 
Old 07-23-2012, 11:55 AM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Hi Chanjay,

postconf -n

There is space between postconf and -n ,

This command should run
 
Old 07-23-2012, 12:11 PM   #7
chanjay
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi Vishesh,

I am so sorry for the confusion.

Here is the result:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = mail.xxxxx.com, localhost, localhost.localdomain
myhostname = mail.xxxxx.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_maildir_extended = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
virtual_uid_maps = static:5000


hc.
 
Old 07-23-2012, 04:25 PM   #8
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

if you're still setting up the system and yet not having it working, then maybe go to here and unleash the pain of configuring it.

good luck
 
Old 07-24-2012, 12:05 AM   #9
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Does theses files exist

virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf

Also whats message logged in /var/log/maillog

Thanks
 
Old 07-24-2012, 11:20 AM   #10
chanjay
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi Vishesh,

Yes those files are in place.

Here are the maillog message:

Jul 23 14:59:00 mail postfix/cleanup[18222]: 0FD8E20314: message-id=<20120723215859.F074D20322@mail.xxxxx.com>
Jul 23 14:59:00 mail postfix/qmgr[18093]: 0FD8E20314: from=<>, size=2410, nrcpt=1 (queue active)
Jul 23 14:59:00 mail postfix/local[18230]: F074D20322: to=<root@mail.xxxxx.com>, relay=local, delay=0.14, delays=0.07/0.01/0/0.06, dsn=2.0.0, status=sent (forwarded as 0FD8E20314)
Jul 23 14:59:00 mail postfix/qmgr[18093]: F074D20322: removed
Jul 23 14:59:02 mail imapd: Connection, ip=[::ffff:127.0.0.1]
Jul 23 14:59:02 mail imapd: chdir xxxxx.com/sales/: No such file or directory
Jul 23 14:59:02 mail imapd: sales@xxxxx.com: No such file or directory
Jul 23 14:59:03 mail postfix/smtp[18226]: 0FD8E20314: to=<andrew@xxxxx.com>, orig_to=<root@mail.xxxxx.com>, relay=none, delay=3.2, delays=0.06/0/3.2/0, dsn=5.4.6, status=bounced (mail for mail.xxxxx.com loops back to myself)
Jul 23 14:59:03 mail postfix/qmgr[18093]: 0FD8E20314: removed

Thanks.

hc.
 
Old 07-24-2012, 11:04 PM   #11
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf ,

Can you share content of this file and coresponding database output.

As per log message there sould be sales folder in /home/vmail/xxxxx.com, Does this exist there and has right permission set ?


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail server naughtyness; mail from:user@server rcpt to:user@server on exim bicpen Linux - Server 1 01-27-2011 11:53 AM
bash script to create folders including making recursive folders.... linux-bandit Linux - Software 8 11-28-2009 01:50 AM
Using WS-FTP, valid user can't go into folders they create krzykard Linux - Networking 0 02-03-2004 11:00 AM
Thru WS-FTP, valid user can't go into folders they create krzykard Linux - Software 2 11-12-2003 05:44 PM
Please Help! IMAP Server Running but mail not in folders latino Linux - Software 1 08-08-2003 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration