HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Courier : can't create directories in home/vmail (http://www.howtoforge.com/forums/showthread.php?t=31545)

kiladila 20th February 2009 00:48

Courier : can't create directories in home/vmail
 
I have a little problem whis this tutorial:
http://www.howtoforge.com/virtual-us...5#comment-5671

Postfix seams to be fine but courier cant create directories in home/vmail
and i cant receive emails and of corse login via squirrelmail.

No records in error logs...

I searched solution in this forum but no results...Can somebody help deal whis this?

falko 20th February 2009 18:40

Did you send a welcome email to the account before you logged in?

kiladila 20th February 2009 20:38

Yes i sent welcome msg and no directory was created in home/vmail

falko 21st February 2009 18:17

What's in your mail log when you send a welcome message?

kiladila 21st February 2009 22:45

Ok this is mail.log when i sent test email via mailx:

Code:

Feb 21 23:43:47 softas postfix/pickup[19457]: D0E5295C37F: uid=0 from=<root>
Feb 21 23:43:47 softas postfix/cleanup[23541]: D0E5295C37F: message-id=<20090221214347.D0E5295C37F@softas.lt>
Feb 21 23:43:47 softas postfix/qmgr[5001]: D0E5295C37F: from=<root@softas.lt>, size=297, nrcpt=1 (queue active)
Feb 21 23:44:06 softas postfix/smtpd[23552]: connect from localhost.localdomain[127.0.0.1]
Feb 21 23:44:06 softas postfix/smtpd[23552]: D387895C3A0: client=localhost.localdomain[127.0.0.1]
Feb 21 23:44:06 softas postfix/cleanup[23541]: D387895C3A0: message-id=<20090221214347.D0E5295C37F@softas.lt>
Feb 21 23:44:06 softas postfix/qmgr[5001]: D387895C3A0: from=<root@softas.lt>, size=720, nrcpt=1 (queue active)
Feb 21 23:44:06 softas postfix/smtpd[23552]: disconnect from localhost.localdomain[127.0.0.1]
Feb 21 23:44:06 softas amavis[5352]: (05352-18) Passed CLEAN, <root@softas.lt> -> <romka@softas.lt>, Message-ID: <20090221214347.D0E5295C37F@softas.lt>, mail_id: CcCSEXvHQHka, Hits: -0.001, size: 297, queued_as: D387895C3A0, 19001 ms
Feb 21 23:44:06 softas postfix/smtp[23544]: D0E5295C37F: to=<romka@softas.lt>, relay=127.0.0.1[127.0.0.1]:10024, delay=19, delays=0.04/0.01/0/19, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as D387895C3A0)
Feb 21 23:44:06 softas postfix/qmgr[5001]: D0E5295C37F: removed
Feb 21 23:44:06 softas postfix/smtpd[17245]: connect from unknown[192.168.1.1]
Feb 21 23:44:06 softas postfix/smtp[23555]: warning: host mail.softas.lt[84.32.221.19]:25 greeted me with my own hostname softas.lt
Feb 21 23:44:06 softas postfix/smtp[23555]: warning: host mail.softas.lt[84.32.221.19]:25 replied to HELO/EHLO with my own hostname softas.lt
Feb 21 23:44:06 softas postfix/smtp[23555]: D387895C3A0: to=<romka@softas.lt>, relay=mail.softas.lt[84.32.221.19]:25, delay=0.04, delays=0.01/0.01/0.02/0, dsn=5.4.6, status=bounced (mail for mail.softas.lt loops back to myself)
Feb 21 23:44:06 softas postfix/smtpd[17245]: disconnect from unknown[192.168.1.1]
Feb 21 23:44:06 softas postfix/cleanup[23541]: E939995C3AB: message-id=<20090221214406.E939995C3AB@softas.lt>
Feb 21 23:44:06 softas postfix/qmgr[5001]: E939995C3AB: from=<>, size=2482, nrcpt=1 (queue active)
Feb 21 23:44:06 softas postfix/bounce[23557]: D387895C3A0: sender non-delivery notification: E939995C3AB
Feb 21 23:44:06 softas postfix/qmgr[5001]: D387895C3A0: removed


falko 22nd February 2009 20:27

Please add mail.softas.lt to the mydestination line in main.cf and restart Postfix.

kiladila 22nd February 2009 21:07

Sorry no results...This is mail.log

Code:

Feb 22 22:01:23 softas postfix/smtpd[24859]: connect from localhost.localdomain[127.0.0.1]
Feb 22 22:01:23 softas postfix/smtpd[24859]: disconnect from localhost.localdomain[127.0.0.1]
Feb 22 22:02:23 softas postfix/smtpd[24859]: connect from localhost.localdomain[127.0.0.1]
Feb 22 22:02:23 softas postfix/smtpd[24859]: disconnect from localhost.localdomain[127.0.0.1]
Feb 22 22:02:52 softas postfix/smtpd[24859]: connect from fg-out-1718.google.com[72.14.220.156]
Feb 22 22:02:52 softas postfix/smtpd[24859]: 9B8A695C54C: client=fg-out-1718.google.com[72.14.220.156]
Feb 22 22:02:52 softas postfix/cleanup[24893]: 9B8A695C54C: message-id=<e583083e0902221202m6483cb4fld77fd4f77f5bad8c@mail.gmail.com>
Feb 22 22:02:52 softas postfix/qmgr[24843]: 9B8A695C54C: from=<kiladila@gmail.com>, size=1953, nrcpt=1 (queue active)
Feb 22 22:02:55 softas postfix/smtpd[24900]: connect from localhost.localdomain[127.0.0.1]
Feb 22 22:02:55 softas postfix/smtpd[24900]: 6D71D95C550: client=localhost.localdomain[127.0.0.1]
Feb 22 22:02:55 softas postfix/cleanup[24893]: 6D71D95C550: message-id=<e583083e0902221202m6483cb4fld77fd4f77f5bad8c@mail.gmail.com>
Feb 22 22:02:55 softas postfix/qmgr[24843]: 6D71D95C550: from=<kiladila@gmail.com>, size=2386, nrcpt=1 (queue active)
Feb 22 22:02:55 softas postfix/smtpd[24900]: disconnect from localhost.localdomain[127.0.0.1]
Feb 22 22:02:55 softas amavis[26907]: (26907-14) Passed CLEAN, [72.14.220.156] [72.14.220.156] <kiladila@gmail.com> -> <romka@softas.lt>, Message-ID: <e583083e0902221202m6483cb4fld77fd4f77f5bad8c@mail.gmail.com>, mail_id: FDblyuiAJ3ma, Hits: 0.152, size: 1953, queued_as: 6D71D95C550, 2732 ms
Feb 22 22:02:55 softas postfix/smtp[24894]: 9B8A695C54C: to=<romka@softas.lt>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.9, delays=0.16/0.01/0/2.7, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 6D71D95C550)
Feb 22 22:02:55 softas postfix/qmgr[24843]: 9B8A695C54C: removed
Feb 22 22:02:55 softas postfix/smtpd[24902]: connect from unknown[192.168.1.1]
Feb 22 22:02:55 softas postfix/smtp[24901]: warning: host mail.softas.lt[84.32.221.19]:25 greeted me with my own hostname mail.softas.lt
Feb 22 22:02:55 softas postfix/smtp[24901]: warning: host mail.softas.lt[84.32.221.19]:25 replied to HELO/EHLO with my own hostname mail.softas.lt
Feb 22 22:02:55 softas postfix/smtp[24901]: 6D71D95C550: to=<romka@softas.lt>, relay=mail.softas.lt[84.32.221.19]:25, delay=0.07, delays=0.03/0.02/0.02/0, dsn=5.4.6, status=bounced (mail for mail.softas.lt loops back to myself)
Feb 22 22:02:55 softas postfix/smtpd[24902]: disconnect from unknown[192.168.1.1]
Feb 22 22:02:55 softas postfix/cleanup[24893]: 829C795C552: message-id=<20090222200255.829C795C552@mail.softas.lt>
Feb 22 22:02:55 softas postfix/qmgr[24843]: 829C795C552: from=<>, size=4206, nrcpt=1 (queue active)
Feb 22 22:02:55 softas postfix/bounce[24903]: 6D71D95C550: sender non-delivery notification: 829C795C552
Feb 22 22:02:55 softas postfix/qmgr[24843]: 6D71D95C550: removed
Feb 22 22:02:56 softas postfix/smtp[24901]: 829C795C552: to=<kiladila@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.218.66]:25, delay=1.1, delays=0.02/0/0.41/0.69, dsn=2.0.0, status=sent (250 2.0.0 OK 1235332976 22si4925017bwz.86)
Feb 22 22:02:56 softas postfix/qmgr[24843]: 829C795C552: removed

And this is 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/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.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 = mail.softas.lt
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain, mail.softas.lt
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
home_mailbox = Maildir/
#home_mailbox = /home/vmail


falko 23rd February 2009 18:51

Did you restart Postfix?

kiladila 23rd February 2009 22:54

YES :) i restarted all server...and nothing...loops back to myself
I have no idea what to do now...

falko 24th February 2009 19:53

Does this happen when you send to a specific email address, or for all email addresses that you send an email?


All times are GMT +2. The time now is 07:17.

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