Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th October 2011, 00:42
PJNoMore PJNoMore is offline
Junior Member
 
Join Date: Jul 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 11.04

Hello everyone,

I followed this guide: http://www.howtoforge.com/virtual-us...l-ubuntu-11.04 but I seem to be getting this error after trying to log in.
Code:
Oct  8 14:57:49 ubuntu1 imapd: chdir ubuntu1.v2m.me/administrator/: No such file or directory
I have sent a message to "administrator@ubuntu1.v2m.me" with

Code:
mailx administrator@ubuntu1.v2m.me
here's my 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 = /usr/share/doc/postfix

# 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 = ubuntu1.v2m.me
alias_maps =c/hosts file.

Thanks in advance! hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ubuntu1.v2m.me, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
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
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_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
I have also added

Code:
192.168.0.5     ubuntu1.v2m.me  ubuntu1
to my /etc/hosts file.

Thanks in advance!


EDIT:
here's some output from tail -f /var/log/mail.log
Code:
Oct  8 16:29:19 ubuntu1 authdaemond: modules="authmysql", daemons=5
Oct  8 16:29:19 ubuntu1 authdaemond: Installing libauthmysql
Oct  8 16:29:19 ubuntu1 authdaemond: Installation complete: authmysql
Oct  8 16:29:24 ubuntu1 postfix/master[970]: daemon started -- version 2.8.2, configuration /etc/postfix
Oct  8 16:32:35 ubuntu1 postfix/pickup[978]: 3D45F180B96: uid=1000 from=<administrator>
Oct  8 16:32:35 ubuntu1 postfix/cleanup[1239]: 3D45F180B96: message-id=<20111008233235.3D45F180B96@ubuntu1.v2m.me>
Oct  8 16:32:35 ubuntu1 postfix/qmgr[979]: 3D45F180B96: from=<administrator@ubuntu1.v2m.me>, size=410, nrcpt=1 (queue active)
Oct  8 16:32:35 ubuntu1 postfix/trivial-rewrite[1241]: warning: do not list domain ubuntu1.v2m.me in BOTH mydestination and virtual_mailbox_domains
Oct  8 16:32:35 ubuntu1 postfix/local[1245]: 3D45F180B96: to=<administrator@ubuntu1.v2m.me>, relay=local, delay=0.46, delays=0.31/0.1/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
Oct  8 16:32:35 ubuntu1 postfix/qmgr[979]: 3D45F180B96: removed
EDIT2:

Mail is going to /var/mail/administrator any explanation?

Last edited by PJNoMore; 9th October 2011 at 01:48.
Reply With Quote
Sponsored Links
  #2  
Old 9th October 2011, 12:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Oct 8 16:32:35 ubuntu1 postfix/trivial-rewrite[1241]: warning: do not list domain ubuntu1.v2m.me in BOTH mydestination and virtual_mailbox_domains
http://www.howtoforge.com/postfix-do...ailbox_domains

Quote:
Mail is going to /var/mail/administrator any explanation?
The explanation is that administrator exists as a system user on your system.
__________________
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
  #3  
Old 9th October 2011, 17:28
PJNoMore PJNoMore is offline
Junior Member
 
Join Date: Jul 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply. I added a new virtual user "test@ubuntu1.v2m.me" and sent it a welcome email with mailx. I tried to log in but still get the same error:

Code:
root@ubuntu1:~# tail -f /var/log/mail.log
Oct  9 08:22:05 ubuntu1 postfix/local[1397]: 0B47B180B96: to=<test@ubuntu1.v2m.me>, relay=local, delay=0.3, delays=0.19/0.03/0/0.08, dsn=5.1.1, status=bounced (unknown user: "test")
Oct  9 08:22:05 ubuntu1 postfix/cleanup[1394]: 41449180BB0: message-id=<20111009152205.41449180BB0@ubuntu1.v2m.me>
Oct  9 08:22:05 ubuntu1 postfix/qmgr[1390]: 41449180BB0: from=<>, size=2056, nrcpt=1 (queue active)
Oct  9 08:22:05 ubuntu1 postfix/bounce[1398]: 0B47B180B96: sender non-delivery notification: 41449180BB0
Oct  9 08:22:05 ubuntu1 postfix/qmgr[1390]: 0B47B180B96: removed
Oct  9 08:22:05 ubuntu1 postfix/local[1397]: 41449180BB0: to=<administrator@ubuntu1.v2m.me>, orig_to=<root@ubuntu1.v2m.me>, relay=local, delay=0.13, delays=0.06/0.01/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
Oct  9 08:22:05 ubuntu1 postfix/qmgr[1390]: 41449180BB0: removed
Oct  9 08:23:18 ubuntu1 imapd: Connection, ip=[::ffff:127.0.0.1]
Oct  9 08:23:18 ubuntu1 imapd: chdir ubuntu1.v2m.me/test/: No such file or directory
Oct  9 08:23:18 ubuntu1 imapd: test@ubuntu1.v2m.me: No such file or directory
EDIT:

I also removed "ubuntu1.v2m.me" from the virtual_mailbox_domains

Last edited by PJNoMore; 9th October 2011 at 17:30.
Reply With Quote
  #4  
Old 10th October 2011, 09:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

You should have removed ubuntu1.v2m.me from mydestination instead of virtual_mailbox_domains.
__________________
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

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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) superman HOWTO-Related Questions 3 23rd July 2010 13:33
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) keyslapper HOWTO-Related Questions 4 20th April 2010 15:46
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.04) Master One HOWTO-Related Questions 4 1st July 2009 15:38
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10) VTCop HOWTO-Related Questions 9 9th April 2009 16:17


All times are GMT +2. The time now is 02:33.


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