V-Server von Strato: Hier Mailserver unter Debian Squeeze einrichten

igel81

New Member
Hallo leute.
Ich habe folgendes Problem:
- V-server bei Strato gemietet.
- 2 domänen drauf gehostet.
- Das Howto von http://www.vboxadm.net/doc/ispmail-vboxadm-squeeze/ durchgeackert.
Vboxadm - Mysqldb - dovecot scheinen soweit zu laufen.
Ich habe wohl ein Problem mit Postfix.
Hier mal die Syslog:
Code:
Sep 17 21:37:35 h1827603 postfix/proxymap[26394]: warning: request for unapprove
d table: "mysql:/etc/postfix/maps/virtual_alias_maps.cf"                        
Sep 17 21:37:35 h1827603 postfix/proxymap[26394]: warning: to approve this table
 for read-only access, list proxy:mysql:/etc/postfix/maps/virtual_alias_maps.cf 
in main.cf:proxy_read_maps                                                      
Sep 17 21:37:35 h1827603 postfix/cleanup[27681]: fatal: proxymap service is not 
configured for table "mysql:/etc/postfix/maps/virtual_alias_maps.cf"            
Sep 17 21:37:36 h1827603 postfix/master[9478]: warning: process /usr/lib/postfix
/cleanup pid 27681 exit status 1                                                
Sep 17 21:37:36 h1827603 postfix/master[9478]: warning: /usr/lib/postfix/cleanup
: bad command startup -- throttling                                             
Sep 17 21:38:17 h1827603 postfix/proxymap[26394]: warning: request for unapprove
d table: "unix:passwd.byname"                                                   
Sep 17 21:38:17 h1827603 postfix/proxymap[26394]: warning: to approve this table
 for read-only access, list proxy:unix:passwd.byname in main.cf:proxy_read_maps 
Sep 17 21:38:17 h1827603 postfix/smtpd[27686]: fatal: proxymap service is not co
nfigured for table "unix:passwd.byname"                                         
Sep 17 21:38:18 h1827603 postfix/master[9478]: warning: process /usr/lib/postfix
/smtpd pid 27686 exit status 1                                                  
Sep 17 21:38:18 h1827603 postfix/master[9478]: warning: /usr/lib/postfix/smtpd: 
bad command startup -- throttling
Das Mailversenden klappt. Nur der Postfix antwortet nicht auf port 25 und nimmt keine Mails entgegen.
Hier nun noch das mail.log-file:
Code:
Sep 17 21:40:28 h1827603 postfix/proxymap[26394]: warning: request for unapprove
d table: "mysql:/etc/postfix/maps/virtual_alias_maps.cf"                        
Sep 17 21:40:28 h1827603 postfix/proxymap[26394]: warning: to approve this table
 for read-only access, list proxy:mysql:/etc/postfix/maps/virtual_alias_maps.cf 
in main.cf:proxy_read_maps                                                      
Sep 17 21:40:28 h1827603 postfix/trivial-rewrite[27745]: fatal: proxymap service
 is not configured for table "mysql:/etc/postfix/maps/virtual_alias_maps.cf"
Hier nun noch die main.cf:
Code:
myorigin = /etc/mailname                                                                                                                               
     
                                                                                                                                                       
     
### EDIT THE FOLLOWING LINES ###                                                                                                                       
     
myhostname = h1827603.stratoserver.net                                                                                                                 
     
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128                                                                                              
     
virtual_minimum_uid = 106                                                                                                                              
     
virtual_uid_maps = static:106                                                                                                                          
     
virtual_gid_maps = static:109                                                                                                                          
     
mydestination = h1827603.stratoserver.net, localhost                                                                                                   
     
relayhost =                                                                                                                                            
     
inet_protocols = all                                                                                                                                   
     
#inet_protocols = ipv4                                                                                                                                 
     
smtpd_tls_cert_file = /etc/ssl/certs/h1827603.stratoserver.net.csr                                                                                     
     
smtpd_tls_key_file = /etc/ssl/private/h1827603.stratoserver.net.key                                                                                    
     
### NO NEED TO EDIT AFTER THIS LINE ###                                                                                                                
     
# (except smtpd_recipient_restrictions perhaps)                                                                                                        
     
                                                                                                                                                       
     
# Misc. MTA settings                                                                                                                                   
     
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 = no                                                                                                                                  
     
mailbox_size_limit = 0                                                                                                                                 
     
recipient_delimiter = +                                                                                                                                
     
inet_interfaces = all                                                                                                                                  
     
maximal_queue_lifetime = 3d                                                                                                                            
     
bounce_queue_lifetime = 2d                                                                                                                             
     
default_database_type = btree                                                                                                                          
     
message_size_limit = 26214400                                                                                                                          
     
2bounce_notice_recipient = postmaster                                                                                                                  
     
                                                                                                                                                       
     
# SSL/TLS                                                                                                                                              
     
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for                                                                              
     
# information on enabling SSL in the smtp client.                                                                                                      
     
smtpd_use_tls = yes                                                                                                                                    
     
smtp_use_tls = yes                                                                                                                                     
     
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache                                                         smtpd_tls_auth_only = no                                                                                                                               
     
                                                                                                                                                       
     
# Local Aliases                                                                                                                                        
     
alias_maps = hash:/etc/aliaetc/aliases                                                                                                                 
             
alias_database = hash:/etc/aliases                                                                                                                     
     
                                                                                                                                                       
     
# Virtual Tables                                                                                                                                       
     
virtual_mailbox_domains =                                                                                                                              
     
        proxy:mysql:/etc/postfix/maps/virtual_domain_maps.cf,                                                                                          
     
        proxy:mysql:/etc/postfix/maps/virtual_domain_alias_maps.cf                                                                                     
     
s =                                                                                                                      virtual_mailbox_map           
      
        proxy:mysql:/etc/postfix/maps/virtual_mailbox_maps.cf                                                                                          
     
virtual_alias_maps =                                                                                                                                   
     
        proxy:mysql:/etc/postfix/maps/virtual_alias_maps.cf,                                                                                           
     
:/etc/postfix/maps/virtual_alias_domain_maps.cf,                                                                                 proxy:mysql           
      
        proxy:mysql:/etc/postfix/maps/virtual_alias_domain_mailbox_maps.cf,                                                                            
     
        proxy:mysql:/etc/postfix/maps/virtual_vacation_alias_maps.cf                                                                                   
     
                                                                                                                                                       
     
ysql:/etc/postfix/maps/access_recipient_roles.cf                                                                         proxy_read_maps = m           
      
proxy_read_maps = mysql:/etc/postfix/maps/virtual_alias_maps.cf                                                                                        
     
# Local Mail Delivery (LDA)                                                                                                                            
     
# Use either the dovecot lda deliver, configured in the master.cf ...                                                                                  
     
                                                                                                      dovecot             virtual_transport =          
       
dovecot_destination_recipient_limit = 1                                                                                                                
     
# or ltmp.                                                                                                                                             
     
virtual_transport = lmtp:unix:private/dovecot-lmtp                                                                                                     
     
                                                                                                                         
                                                                                                                                                       
      
# Quota Support                      
virtual_mailbox_limit = proxy:mysql:/etc/postfix/maps/virtual_mailbox_limit_maps.cf                                                                    
     
virtual_mailbox_limit_override = yes                                                                                                                   
     
it_message = "Sorry, the user's maildir has overdrawn his diskspace quota, please try again later."                      
ounce = yes                                                                                                              virtual_maildir_lim           
      
virtual_overquota_b                  
                                                                                                                                                       
     
# SASL                                                                                                                                                 
     
ovecot                                                                                                                   
rivate/auth                                                                                                              smtpd_sasl_type = d           
      
smtpd_sasl_path = p                  
smtpd_sasl_auth_enable = yes                                                                                                                           
     
                                                                                                                                                       
     
# Recipient and Relay Checks - VERY IMPORTANT                                                                                                          
     
smtpd_recipient_restrictions =                                                                                                                         
     
# Allow Postmaster, Abuse and other imporant role accounts                                                                                             
     
#        check_recipient_access btree:/etc/postfix/maps/access_recipient-rfc,                                                                          
     
                check_recipient_access proxy:mysql:/etc/postfix/maps/access_recipient_roles.cf,                                                        
     
# White- and Blacklisting                                                                                                       check_client_access btree:/etc/postfix/maps/access_client,                                                                                     
     
        check_helo_access btree:/etc/postfix/maps/access_helo,                                                                                         
     
        check_sender_access btree:/etc/postfix/maps/access_sender,                                                                                     
     
        check_recipient_access btree:/etc/postfix/maps/access_recipient,                                                                               
     
# Allow no malformed mails                                                                                                                             
     
        reject_non_fqdn_sender,                                                                                                                        
     
        reject_non_fqdn_recipient,                                                                                                                     
     
        reject_unknown_sender_domain,                                                                                                                  
     
        reject_unknown_recipient_domain,                                                                                                               
     
# Allow our authed. users                                                                                                                              
     
        permit_sasl_authenticated,                                                                                                                     
     
        permit_mynetworks,                                                                                                                             
     
# These rejects may have to be disabled, watch your logs                                                                                               
     
        reject_invalid_helo_hostname,                                                                                                                  
     
        reject_unknown_helo_hostname,                                                                                                                  
     
        reject_non_fqdn_helo_hostname,                                                                                                                 
     
        reject_unknown_client_hostname,                                                                                                                
     
        reject_unknown_reverse_client_hostname,                                                                                                        
     
# check RBLs                                                                                                                                           
     
        reject_rbl_client ix.dnsbl.manitu.net,                                                                                                         
     
        reject_rbl_client zen.spamhaus.org,                                                                                                            
     
#       reject_rbl_client bl.spamcop.net,                                                                                                              
     
#       reject_rbl_client dnsbl.njabl.org,                                                                                                             
     
#       reject_rbl_client list.dsbl.org,                                                                                                               
     
#       reject_rhsbl_client blackhole.securitysage.com,                                                                                                
     
#       reject_rhsbl_sender dsn.rfc-ignorant.org                                                                                                       
     
# Greylisting                                                                                                                                          
     
        check_policy_service inet:127.0.0.1:60000,                                                                                                     
     
# Backup-MX: test existing relay recipients dynamically                                                                                                
     
#       reject_unverified_recipient,                                                                                                                   
     
# Backup-MX: allow                                                                                                                                     
     
#       permit_mx_backup,                                                                                                                              
     
# No other relaying                                                                                                                                    
     
        reject_unauth_destination,                                                                                                                     
     
# Policyd-Weight                                                                                                                                       
     
        check_policy_service inet:127.0.0.1:12525,                                                                                                     
     
# allow the rest                                                                                                                                       
     
        permit                                                                                                                                         
     
                                                                                                                                                       
     
# Milter settings                                                                                                                                      
     
milter_default_action = accept                                                                                                                         
     
milter_protocol = 2                                                                                                                                    
     
                                                                                                                                                       
     
# Rate limiting                                                                                                                                        
     
anvil_status_update_time = 600s                                                                                                                                                                                
     anvil_rate_time_unit = 60s                                                                                                                             
     
smtpd_client_connection_rate_limit = 60                                                                                                                
     
smtpd_client_connection_count_limit = 25                                                                                                               
     
smtpd_client_message_rate_limit = 1000                                                                                                                 
     
smtpd_client_recipient_rate_limit = 1000                                                                                                               
     
                                                                                                                                                       
     
# Vacation                                                                                                                                             
     
transport_maps = btree:/etc/postfix/maps/transport                                                                                                     
     
vacation_destination_recipient_limit = 1                                                                                                               
     
                                                                                                                                                       
     
# Custom reject code for unverified recipients                                                                                                         
     
unverified_recipient_reject_code=577                                                                                                                   
     
                                                                                                                                                       
     
# Mailarchive                                                                                                                                          
     
mailarchive_destination_recipient_limit = 1                                                                                                            
     
recipient_bcc_maps = pcre:/etc/postfix/maps/recipient_bcc                                                                                              
     
                                                                                                                                                       
     
# Dyn. Recipient Verification                                                                                                                          
     
address_verify_maps=btree:/var/spool/postfix/data/verify
Habt ihr vielleicht eine Idee wieso der SMTP-Mist nicht klappt?
Grüße
Christoph
 
Last edited by a moderator:
wenn Du deinen Beitrag in
Code:
code
tags packen würdest wäre es leichter zu lesen.

So wie es jetzt ausschaut, nur beim überfliegen sind einige Dreher in der main.cf

Code:
ysql:/etc/postfix/maps/access_recipient_roles.cf proxy_read_maps = m *
davon sehe ich einige Dreher. Wenn das wirklich so in der main.cf steht.... nochmal sauber durcharbeiten und bei copy & paste auch mal nachlesen obs Sinn ergibt.

Gruß Sven
 
Last edited by a moderator:
Hi Sven,
danke für deine Antwort.
Sorry, das habe ich übersehen das heilose DUrcheinander. Da ich mit diesem Editor nicht klar komme in dem Forum, werde ich in Zukunft die Dateien in die Anhänge packen. Das ganze geht nicht, da ich blind bin und die Sprache den Editor nicht vorliest.
Ich überarbeite und sende als anlage.
gruß
Chris
 
Hallo.
so. habe jetzt nochmal die cf-dateien überarbeitet, einige CR-fehler gefixt und auch mal ein paar Zeilen verschoben. Leider ohne erfolg.
Hier also als Anlage meine beiden Dateien.
Ich hoffe, dass es jetzt besser zu lesen ist.
Die Dateien sind mit mcedit bearbeitet worden
Grüße
Christoph
 

Attachments

Hallo Igel,

hast Du Deinen Fehler gefunden ?
Ich sitze genau an dem gleichem Punkt nun fest und komme nicht weiter.

Besten gruss Peter
 
Hi Peter,
nein leider nicht, bin auf Virtualmin umgestiegen und auch weitestgehend zufrieden.
Grüße
CHristoph
 
Back
Top