Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-20-2012, 06:39 PM
#1
LQ Newbie
Registered: Jun 2011
Posts: 13
Rep:
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.
07-21-2012, 12:09 AM
#2
Member
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Rep:
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
07-21-2012, 01:39 AM
#3
Member
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661
Rep:
Can you please post output of following command
postconf -n
07-23-2012, 10:57 AM
#4
LQ Newbie
Registered: Jun 2011
Posts: 13
Original Poster
Rep:
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.
07-23-2012, 11:00 AM
#5
LQ Newbie
Registered: Jun 2011
Posts: 13
Original Poster
Rep:
Hi Vishesh,
Another delayed message:
421 4.4.2 mail.xxxxx.com Error: timeout exceeded
Connection closed by foreign host.
hc.
07-23-2012, 11:55 AM
#6
Member
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661
Rep:
Hi Chanjay,
postconf -n
There is space between postconf and -n ,
This command should run
07-23-2012, 12:11 PM
#7
LQ Newbie
Registered: Jun 2011
Posts: 13
Original Poster
Rep:
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.
07-23-2012, 04:25 PM
#8
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
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
07-24-2012, 12:05 AM
#9
Member
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661
Rep:
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
07-24-2012, 11:20 AM
#10
LQ Newbie
Registered: Jun 2011
Posts: 13
Original Poster
Rep:
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.
07-24-2012, 11:04 PM
#11
Member
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661
Rep:
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
All times are GMT -5. The time now is 04:15 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News