main.cf - Fehlerhaft?!

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
kasi4u
Posts: 116
Joined: 2002-08-12 22:34
Location: Leipzig

main.cf - Fehlerhaft?!

Post by kasi4u » 2003-11-15 11:21

Hallo,

ich hoffe, ihr könnt mir helfen. Meine Postfixversion ist derzeit: 1.1.11.

Ein Update auf Postfix 2.0.14 ist leider sehr schief verlaufen, sodass ich auf postfix 1.1.11 erst einmal setzen muss.

Dies ist meine main.cf

Code: Select all

#
# Postfixkonfiguration
#
#
# SOFT BOUNCE
#
#soft_bounce = no
#
# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = autoresp
#
# INTERNET HOST AND DOMAIN NAMES
# 
#myhostname = host.domain.tld
#myhostname = p12345678.pureserver.info
myhostname = serverdomain.com
#
#mydomain = p12345678.pureserver.info
mydomain = serverdomain.com
#
# SENDING MAIL
# 
#myorigin = $myhostname
#myorigin = $mydomain
#
# RECEIVING MAIL
#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#
#mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mail.$mydomain, www.$mydomain, ftp.$mydomain
#
#mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain
#mydestination = $myhostname, $mydomain, localhost.$mydomain
#mydestination = $myhostname, $mydomain, localhost.$mydomain, smtp.$mydomain
mydestination = $myhostname, $mydomain, localhost.$mydomain, relay_domains = $mydomain,

#
# TRUST AND RELAY CONTROL
# 
#mynetworks_style = class
#mynetworks_style = subnet
mynetworks_style = host
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#
#relay_domains = $mydestination
#
# INTERNET OR INTRANET
#
#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
#
# REJECTING UNKNOWN LOCAL USERS
# 
local_recipient_maps = $alias_maps unix:passwd.byname
#
# INPUT RATE CONTROL
# 
#in_flow_delay = 1s
in_flow_delay = 0
#
# ADDRESS REWRITING
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
alias_maps = hash:/etc/aliases
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_database = hash:/etc/aliases
#
# ADDRESS EXTENSIONS (e.g., user+foo)
#
#recipient_delimiter = +
#
# DELIVERY TO MAILBOX
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/
# 
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
mail_spool_directory = /var/mail
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
#  
# JUNK MAIL CONTROLS
#
# header_checks = regexp:/etc/postfix/header_checks
#
# FAST ETRN SERVICE
#
#fast_flush_domains = $relay_domains
#fast_flush_domains =
fast_flush_domains = $relay_domains
#
# SHOW SOFTWARE VERSION OR NOT
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_banner = $myhostname ESMTP $mail_name
#
# PARALLEL DELIVERY TO THE SAME DESTINATION
#
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 10
#
# DEBUGGING CONTROL
#
debug_peer_level = 2
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
#
debugger_command =
	 PATH=/usr/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
#
# INSTALL-TIME CONFIGURATION INFORMATION
# 
sendmail_path = /usr/sbin/sendmail
#
newaliases_path = /usr/bin/newaliases
#
mailq_path = /usr/bin/mailq
#
setgid_group = maildrop
#
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
#
#suseconfig:
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
#inet_interfaces = all
masquerade_domains = serverdomain.com
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = 
strict_rfc821_envelopes = no
maps_rbl_domains = relays.ordb.org proxy.relays.osirusoft.com socks.relays.osirusoft.com
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, reject_maps_rbl

#SMTPD Auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

#TLS Support
smtpd_use_tls = yes
smtpd_enforce_tls = no
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
Ist dort Sinnloses/Fehlerhaftes zu sehen?`Bisher konnte ich nur eingeschränkte Tests durchführen. "postfix check" ergab kein Fehler.

Danke,
Karsten

r00ty
Posts: 747
Joined: 2003-03-17 15:32

Re: main.cf - Fehlerhaft?!

Post by r00ty » 2003-11-15 11:32

also die
mydestination

sieht bei dir komisch aus
ich hab

Code: Select all

mydestination = $myhostname, localhost.$mydomain $mydomain
(^ ^ ^ da fällt mir auf, fehlt da nicht ein komme hinten ?)

kasi4u
Posts: 116
Joined: 2002-08-12 22:34
Location: Leipzig

ja.

Post by kasi4u » 2003-11-15 11:57

Ja, ich meine da fehlt ein Komma:

Code: Select all

# so sieht's jetzt aus:
mydestination = $myhostname, localhost.$mydomain $mydomain

Code: Select all

# so sollte es aussehen:
mydestination = $myhostname, localhost.$mydomain, $mydomain


r00ty
Posts: 747
Joined: 2003-03-17 15:32

Re: main.cf - Fehlerhaft?!

Post by r00ty » 2003-11-15 13:54

thx :)

sonst sieht deine config gut aus....

(aber eigentlich sollte es kein problem sein auf Postfix 2.x upzudaten)