Probleme mit main.cf bezüglich open relay

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
tobi
Posts: 121
Joined: 2002-08-02 20:58
Location: München

Probleme mit main.cf bezüglich open relay

Post by tobi » 2006-02-16 23:48

Hallo,

ich war schon länger nicht mehr da, aber nun hab ein problem mit meinem neuen Server und vermutlich bekomme ich hier die beste hilfe. Zur zeit funktioniert die Authentifizierung noch nicht, ich wäre also ein open relay. Leider finde ich nichts mehr, es könnte ein einfach Schreibfehler oder Denkfehler sein komme einfach nicht drauf.
Vielleicht kann mir jemand helfen, hier meine main.cf (Postfix 2):

Code: Select all

# daemon configuration
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no

myhostname = hxxxxxx.serverkompetenz.net
myorigin = hxxxxxx.serverkompetenz.net
mynetworks = 127.0.0.0/8
mydomain = hxxxxxx.serverkompetenz.net
mynetworks_style = host
#mydestination = localhost hxxxxxx.serverkompetenz.net $myhostname $mydomain localhost localhost.$mydomain $transport_maps
mydestination = localhost $mydomain localhost.$mydomain $transport_maps
inet_interfaces = all
local_transport = local

# runtime configuration
alias_maps = hash:/etc/aliases mysql:/etc/postfix/mysql-virtual_alias_maps.cf
alias_database = hash:/etc/aliases

message_size_limit = 209715200
mailbox_command =
mailbox_size_limit = 0
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
recipient_delimiter = +
local_recipient_maps =

# sasl settings
#transport_maps = mysql:/etc/postfix/mysql-transport_maps.cf mysql:/etc/postfix/mysql-virtual_mailman_transport.cf
virtual_mailbox_base = /var/kunden/mail/
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual_uid_maps.cf
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual_gid_maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
virtual_transport = maildrop

#Maildrop-Options for usage with maildrop
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1

#Mailman
transport_maps = mysql:/etc/postfix/mysql-virtual_mailman_transport.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_mailman.cf
mailman_destination_recipient_limit = 1

# TLS Mode for SMTP-service
smtp_use_tls = no
smtp_tls_note_starttls_offer = yes
smtpd_use_tls = no
smtpd_tls_key_file = /etc/postfix/mail.test.info.key
smtpd_tls_cert_file = /etc/postfix/mail.test.info.crt
#smtpd_tls_CAFile = /etc/postfix/smtpd.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination


# anti-spam and security settings
append_dot_mydomain = no
allow_untrusted_routing = no
smtp_recipient_limit = 25
disable_vrfy_command = yes
#header_checks = regexp:/etc/postfix/header_checks

maps_rbl_domains = relays.ordb.org
smtp_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining
smtp_client_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining
smtp_sender_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unknown_client, reject_non_fqdn_hostname
#smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining
#smtpd_client_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining
#smtpd_sender_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unknown_clien
Vielen Dank
tobi

User avatar
Joe User
Project Manager
Project Manager
Posts: 11578
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Probleme mit main.cf bezüglich open relay

Post by Joe User » 2006-02-17 00:12

Stelle bitte die originale main.cf wieder her und nimm nur von Dir verstandene Ã?nderungen daran vor. Deine aus mehreren HowTos blind zusammenkopierte main.cf enthält etliche Fehler...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.