LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-30-2007, 04:35 AM   #1
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
Debian Etch - Postfix+Courier+MySQL+VMail problem - VMail is not created


Hi!

I set up a system according to a tutorial:
http://howtoforge.com/virtual_users_...ix_debian_etch
Everything seems to work. I add a new user to the DB and I could log on but I get an error message.

chdir example.tld/test/ failed

That means the server could auth but couldn't find the dirs for the virtual user. I checked. It didn't exist. When adding a new user to the DB and I reload postfix, it should create the dirs, shouldn't it? Or at least when I send a mail to the account. I tried both and didn't work. I added the dir manually and tried to send a mail but didn't get through. I didn't get any error messages. In the syslog, mail.err, mail.log, mail.warn everything was fine. My master.cf

Quote:
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
main.cf
Quote:
myhostname = example.tld
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = example.tld, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
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_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_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
netstat -tap
Quote:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:10024 *:* LISTEN 1996/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 2442/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2076/mysqld
tcp 0 0 *:smtp *:* LISTEN 2442/master
tcp6 0 0 *:imaps *:* LISTEN 2338/couriertcpd
tcp6 0 0 *op3s *:* LISTEN 2372/couriertcpd
tcp6 0 0 *op3 *:* LISTEN 2347/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 2321/couriertcpd
tcp6 0 0 *:www *:* LISTEN 2534/apache2
tcp6 0 0 *:ssh *:* LISTEN 2475/sshd
tcp6 0 0 example.tld:ssh ::ffff:192.168.0.:34101 ESTABLISHED2758/0
Why is that? If u need any more info, just let me know. I will post whatever u need. I just can't figure it out. Annoying.

Last edited by vargadanis; 08-30-2007 at 04:37 AM. Reason: privacy issues
 
  


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
LXer: Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) LXer Syndicated Linux News 0 06-07-2007 07:47 PM
Postfix won't move mail from /var/spool/mail to /home/vmail jmoschetti45 Linux - Server 13 03-07-2007 06:03 AM
FreeBSD VMail Howto hosler *BSD 2 10-08-2006 08:23 PM
migrate from shadow to vmail password freelinuxcpp Linux - Networking 0 10-03-2004 06:13 AM
Vmail Manager robeb Linux - Software 1 05-21-2002 01:29 PM


All times are GMT -5. The time now is 04:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration