View Single Post
  #16  
Old 22nd March 2009, 05:11
jokn00 jokn00 is offline
Junior Member
 
Join Date: Jan 2008
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default Similar Problem

I have a similar problem, but with the debian version of the how-to.

http://howtoforge.com/virtual-users-...l-debian-lenny

I followed the tutorial with no problems and everything seemed to be okay but then when I went to test send / receive mail I ran into problems. Per instructions in the tutorial the vmail boxes were supposed to be created automatically when a mail was sent to them. I used mailx as instructed, but this did not create the directories. I tried sending a mail from an outside account, I get a bounce back stating 'relay access denied'. Here's my main.cf and the output of my mail.log when I used mailx to send a test. I've edited the domain names from the configs for privacy reasons. What am I overlooking here?

EDIT: I tried this with a second domain after reading the above post, the 2nd domain ex: user@domain2.com works fine after I sent a mail using mailx. The domain I used for my hostname in /etc/hosts is the same domain I used for mydestination in /etc/postfix/main.cf. I changed my hostname and main.cf and restarted postfix. It's still not creating the mailbox in /home/vmail. The messages are still bouncing.

Code:
Mar 22 04:01:35 li34-68 postfix/pickup[532]: 3200F104FE: uid=0 from=<root>
Mar 22 04:01:35 li34-68 postfix/cleanup[701]: 3200F104FE: message-id=<20090322040135.3200F104FE@mail.domain.com>
Mar 22 04:01:35 li34-68 postfix/qmgr[531]: 3200F104FE: from=<root@mail.domain.com>, size=329, nrcpt=1 (queue active)
Mar 22 04:01:36 li34-68 postfix/smtpd[710]: connect from localhost.localdomain[127.0.0.1]
Mar 22 04:01:36 li34-68 postfix/smtpd[710]: 8FB3A104ED: client=localhost.localdomain[127.0.0.1]
Mar 22 04:01:36 li34-68 postfix/cleanup[701]: 8FB3A104ED: message-id=<20090322040135.3200F104FE@mail.domain.com>
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: 8FB3A104ED: from=<root@mail.domain.com>, size=805, nrcpt=1 (queue active)
Mar 22 04:01:36 li34-68 postfix/smtpd[710]: disconnect from localhost.localdomain[127.0.0.1]
Mar 22 04:01:36 li34-68 amavis[32254]: (32254-02) Passed CLEAN, <root@mail.domain.com> -> <exuser@domain.com>, Message-ID: <20090322040135.3200F104FE@mail.domain.com>, mail_id: dBPg9Ol2JbtZ, Hits: 0.482, size: 329, queued_as: 8FB3A104ED, 1409 ms
Mar 22 04:01:36 li34-68 postfix/smtp[705]: 3200F104FE: to=<exuser@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.4, delays=0.02/0/0/1.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=32254-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8FB3A104ED)
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: 3200F104FE: removed
Mar 22 04:01:36 li34-68 postfix/smtp[711]: 8FB3A104ED: to=<exuser@domain.com>, relay=none, delay=0.04, delays=0.04/0.01/0/0, dsn=5.4.6, status=bounced (mail for domain.com loops back to myself)
Mar 22 04:01:36 li34-68 postfix/cleanup[701]: B3ACF104FF: message-id=<20090322040136.B3ACF104FF@mail.domain.com>
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: B3ACF104FF: from=<>, size=2708, nrcpt=1 (queue active)
Mar 22 04:01:36 li34-68 postfix/bounce[712]: 8FB3A104ED: sender non-delivery notification: B3ACF104FF
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: 8FB3A104ED: removed
Mar 22 04:01:36 li34-68 postfix/cleanup[701]: CCBE8104ED: message-id=<20090322040136.B3ACF104FF@mail.domain.com>
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: CCBE8104ED: from=<>, size=2849, nrcpt=1 (queue active)
Mar 22 04:01:36 li34-68 postfix/local[713]: B3ACF104FF: to=<root@mail.domain.com>, relay=local, delay=0.16, delays=0.1/0.01/0/0.05, dsn=2.0.0, status=sent (forwarded as CCBE8104ED)
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: B3ACF104FF: removed
Mar 22 04:01:36 li34-68 postfix/smtp[711]: CCBE8104ED: to=<postmaster@domain.com>, orig_to=<root@mail.domain.com>, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.4.6, status=bounced (mail for domain.com loops back to myself)
Mar 22 04:01:36 li34-68 postfix/qmgr[531]: CCBE8104ED: removed
This is my /etc/postfix/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 (Debian/GNU)
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 = mail.domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.domain.com, 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
message_size_limit = 30720000
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."
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

Last edited by jokn00; 22nd March 2009 at 05:55.
Reply With Quote