Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 18th June 2009, 16:40
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 44
Thanks: 2
Thanked 3 Times in 3 Posts
Default

I reinstalled all from scratch with the install guide (ubuntu 9.04), and tried it with all the default directories.

I still have the same problem, it seems postfix doesn't check if a user exists when receiving mail and creates all the maildirs.

Could it be that postfix doesn't connect to the mysql database? all the /etc/postfix/mysql_virtual_*.cf generated by ispconfig seem correct. How could I see if postfix correctly gets the virtual user data?

Any ideas?

thanks
Reply With Quote
Sponsored Links
  #12  
Old 18th June 2009, 17:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please post the content of your main.cf file and also an excerpt of the mail log that shows the receiving process for an existing email account and also for a non existing account that goes trough.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 18th June 2009, 17:37
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 44
Thanks: 2
Thanked 3 Times in 3 Posts
Default

here is the main.cf file:

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 = <hostname>
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = <hostname>, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128
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 = /var/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, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.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
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
and here is the mail.log :

Code:
Jun 18 17:26:31 hostname postfix/smtpd[4143]: connect from localhost.localdomain[127.0.0.1]
Jun 18 17:26:31 hostname postfix/smtpd[4143]: 188B279D0: client=localhost.localdomain[127.0.0.1]
Jun 18 17:26:31 hostname postfix/cleanup[4128]: 188B279D0: message-id=<5f0474d6d020080d98142df7ab94b60e@localhost>
Jun 18 17:26:31 hostname postfix/qmgr[3790]: 188B279D0: from=<alexandre@domain.tld>, size=892, nrcpt=2 (queue active)
Jun 18 17:26:31 hostname amavis[4022]: (04022-01) Passed CLEAN, <alexandre@domain.tld> -> <alexandre@domain.tld>,<test@domain.tld>, Message-ID: <5f0474d6d020080d98142df7ab94b60e@localhost>, mail_id: g72-nsxUIF3L, Hits: 0.671, size: 487, queued_as: 188B279D0, 1965 ms
Jun 18 17:26:31 hostname postfix/smtp[4132]: 13C3E79C9: to=<alexandre@domain.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.08/0.06/0.01/2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04022-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 188B279D0)
Jun 18 17:26:31 hostname postfix/smtp[4132]: 13C3E79C9: to=<test@domain.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.08/0.06/0.01/2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04022-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 188B279D0)
Jun 18 17:26:31 hostname postfix/qmgr[3790]: 13C3E79C9: removed
Jun 18 17:26:31 hostname postfix/pipe[3802]: 188B279D0: to=<test@domain.tld>, relay=maildrop, delay=0.04, delays=0.01/0/0/0.03, dsn=2.0.0, status=sent (delivered via maildrop service)
Jun 18 17:26:31 hostname postfix/pipe[3835]: 188B279D0: to=<alexandre@domain.tld>, relay=maildrop, delay=0.04, delays=0.01/0/0/0.03, dsn=2.0.0, status=sent (delivered via maildrop service)
Jun 18 17:26:31 hostname postfix/qmgr[3790]: 188B279D0: removed
The mailbox "alexandre" exists, the the mailbox "test" doesn't
Reply With Quote
  #14  
Old 18th June 2009, 23:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Is "domain.tld" the same that you masked as <hostname> in the main.cf file or is domain.tld in the /etc/mailname file?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 19th June 2009, 01:49
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 44
Thanks: 2
Thanked 3 Times in 3 Posts
Default

<hostname> is the same than in /etc/hostname and /etc/mailname (it's the main name given to the server by the provider)

domain.tld is one of the domains hosted on the server with ispconfig.
Reply With Quote
  #16  
Old 19th June 2009, 08:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

And domain.tld is setup in ispconfig only as mailbox domain and not as relay domain?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 19th June 2009, 16:24
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 44
Thanks: 2
Thanked 3 Times in 3 Posts
Default

It's only set as an email domain.
Reply With Quote
  #18  
Old 19th June 2009, 21:24
Amorphous Amorphous is offline
Member
 
Join Date: Jun 2009
Posts: 59
Thanks: 26
Thanked 1 Time in 1 Post
Default

till: And domain.tld is setup in ispconfig only as mailbox domain and not as relay domain?



can someone plzz explain the 2 comments ??? relay domain and mailbox domain ??
i have 2 domains of my own, and the server is named server1.domain1.com

for this domain -> domain1.com is it possible for not being able to create mail accounts and working ???

the zone and the subdomains for this domain i have it on ispconfig , and on the same server i got from a friend a subdomain, games.anotherdomain.com ... if i m creating mail accounts for this subdomain, everything works fine, i get the mail , wellcome to your new mail account bla bla bla, the maill account looks like this, name@games.anotherdomain.com

when i m trying to make mail accounts for the domain1.com
mail accounts like name@domain1.com are created but not allways, and when they are created i can t receive e mails, i only can send .... the reply on the mail that i am sending from is name account not registered as e-mail account




and right now i m getting same problem for all of the e-mail accounts allready created

connection dropped by imap server
Reply With Quote
  #19  
Old 20th June 2009, 10:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Amorphus. Please make a new thread for your questions.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #20  
Old 20th June 2009, 12:29
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 44
Thanks: 2
Thanked 3 Times in 3 Posts
 
Default

I've set mysql to logging mode, and it does receive the requests from postfix.
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
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
saslauthd problem: bind: Address already in use fitti70 Server Operation 4 14th May 2007 21:51
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 04:40
postfix+mysql and maildrop filter problem osanet Installation/Configuration 1 2nd June 2006 11:50
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 00:20.


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