Postfix nimmt keine E-Mails von draußen an

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
kenny711
Posts: 6
Joined: 2006-06-26 23:05

Postfix nimmt keine E-Mails von draußen an

Post by kenny711 » 2006-07-07 12:21

Hallo Leute,

ich hab auf meinen Ubuntu Server Postfix laufen. Lokal und nach draußen werden die Mail zugestellt. Aber der Server nimmt keine mail an :-(

Code: Select all

Jul  7 12:00:25 mail postfix/smtpd[12411]: NOQUEUE: reject: RCPT from mx.server.de[123.123.123.123]: 554 <test@domain.de>: Relay access denied; from=<hugo@server2.de> to=< test@domain.de > proto=ESMTP helo=<mailserver.server2.de>

Meine Postfix Konfiguratiuon:

Code: Select all

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

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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.de
myorigin = /etc/mailname
mydestination = mail, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all


virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/vms-forwardings.cf
virtual_mailbox_domains = mysql:/etc/postfix/vms-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/vms-mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

virtual_transport = virtual
local_recipient_maps = $virtual_mailbox_maps

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject
virtual_mailbox_limit = 0
message_size_limit = 70254592

smtpd_helo_required = yes


content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappin
Ich vermute mal, dass liegt an smtpd_recipient_restrictions. Ich verstehe aber nicht was ich da eintragen muss, damit der Server von außen mails annimmt und sie an die Postfächer verteilt. Natürlich soll auch eine Passwort abfragen kommen wenn Benutzer mail verschicken.
Kann mir bitte jemand sagen was da hinkommt?

mfg kenny711

herrchen
Posts: 19
Joined: 2005-08-23 12:50
Location: Berlin

Re: Postfix nimmt keine E-Mails von draußen an

Post by herrchen » 2006-07-07 14:26

kenny711 wrote: Ich vermute mal, dass liegt an smtpd_recipient_restrictions
ich vermute eher, dass sich postfix nicht zuständig fühlt:

http://www.postfix.org/VIRTUAL_README.html

herrchen

duergner
RSAC
Posts: 976
Joined: 2003-08-20 11:30
Location: Pittsburgh, PA, USA

Re: Postfix nimmt keine E-Mails von draußen an

Post by duergner » 2006-07-07 15:15

Das liegt daran. Relay Access Denied bedeutet, dass dein Postfix sich weigert die Email an einen anderen Server weiterzuleiten. Aber das sollte er ja nicht machen wenn er final destination ist.

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-02 19:34

Auch wenn dieser Beitrag schon länger brach liegt, so habe ich den selben Fehler.

Bei mir werden die Mails mit dem Hinweis 554 <test@domain.de>: Relay access denied;

abgeweisen, obwohl die Domains in der Virtual von Confixx stehen und diese ebenfalls eingebunden ist:

main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = mail.technik-plus.com
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq

setgid_group = maildrop

html_directory = /usr/share/doc/packages/postfix/html

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/packages/postfix/samples

readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
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
myhostname = SuSE-101-32-LAMP.site
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_sender_access hash:/etc/postfix/access
check_recipient_access hash:/etc/postfix/access
permit
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
In den Confixx Dateien sind die Domains um die es geht auch geschrieben.

Ich bin für jede Hilfe Dankbar.

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

Re: Postfix nimmt keine E-Mails von draußen an

Post by Joe User » 2007-06-02 20:28

*) myhostname ist ungültig.
*) mynetworks_style ist (vermutlich) unglücklich gewählt.
*) virtual_alias_[maps|domains] und virtual_maps können sich überlappen.
*) postconf -n und die passenden Logauszüge sind hilfreicher...
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.

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-02 21:00

Danke für die Antwort und die Hinweise.


Ich habe virtual_alias_* jetzt mal raus genommen.

mail.err
Jun 2 20:57:53 SuSE-101-32-LAMP postfix/trivial-rewrite[4183]: fatal: open database /etc/postfix/confixx_virtualUsers.db: Operation not permitted
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain
myhostname = mail.technik-plus.com
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_sender_access hash:/etc/postfix/access check_recipient_access hash:/etc/postfix/access permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

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

Re: Postfix nimmt keine E-Mails von draußen an

Post by Joe User » 2007-06-02 21:27

Code: Select all

ls -alh /etc/postfix
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.

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-02 22:28

Code: Select all

 ls -alh /etc/postfix
total 446K
drwxr-xr-x  3 root root 1.4K Jun  2 20:55 .
drwxr-xr-x 65 root root 5.5K Jun  2 19:16 ..
-rw-r--r--  1 root root  12K May  2  2006 LICENSE
-rw-r--r--  1 root root 1.6K May  2  2006 TLS_LICENSE
-rw-r--r--  1 root root  16K May  2  2006 access
-rw-r--r--  1 root root  12K Apr 30 15:24 access.db
-rw-r--r--  1 root root  11K May  2  2006 canonical
-rw-r--r--  1 root root  12K Apr 30 15:24 canonical.db
-rwxrwxrwx  1 root root  134 Jun  2 18:49 confixx_localDomains
-rwxrwxrwx  1 root root  12K Jun  2 18:56 confixx_localDomains.db
-rwxrwxrwx  1 root root  272 May 13 21:59 confixx_virtualUsers
-rwxrwxrwx  1 root root  12K Jun  2 18:56 confixx_virtualUsers.db
-rw-r--r--  1 root root  449 May  2  2006 dynamicmaps.cf
-rw-r--r--  1 root root 9.4K May  2  2006 generic
-rw-r--r--  1 root root  17K May  2  2006 header_checks
-rw-r--r--  1 root root  27K Jun  2 20:55 main.cf
-rw-r--r--  1 root root  26K Apr 30 22:24 main.cf.2007-04-30
-rw-r--r--  1 root root  27K Jun  2 19:16 main.cf.SuSEconfig
-rw-r--r--  1 root root  122 May  2  2006 main.cf.default
-rw-r--r--  1 root root  27K Apr 30 18:07 main.cf.rpmsave
-rw-r--r--  1 root root 2.4K Jun  2 19:32 main.copy
-rw-r--r--  1 root root  970 May  2  2006 makedefs.out
-rw-r--r--  1 root root 3.9K Apr 30 22:24 master.cf
-rw-r--r--  1 root root 3.9K Apr 30 22:24 master.cf.2007-04-30
-rw-r--r--  1 root root 3.9K Apr 30 15:24 master.cf.rpmsave
-rw-r--r--  1 root root 2.3K May  2  2006 openssl_postfix.conf.in
-rwxr-xr-x  1 root root  22K May  2  2006 post-install
-rw-r--r--  1 root root  15K May  2  2006 postfix-files
-rwxr-xr-x  1 root root 6.3K May  2  2006 postfix-script
-rw-r--r--  1 root root  199 May  2  2006 relay_ccerts
-rw-r--r--  1 root root  12K Apr 30 15:24 relay_ccerts.db
-rw-r--r--  1 root root 6.4K May  2  2006 relocated
-rw-r--r--  1 root root  12K Apr 30 15:24 relocated.db
drwxr-xr-x  2 root root   80 Jun  2 18:20 sasl
-rw-------  1 root root  172 May  2  2006 sasl_passwd
-rw-------  1 root root  12K Apr 30 15:24 sasl_passwd.db
-rw-r--r--  1 root root  412 May  2  2006 sender_canonical
-rw-r--r--  1 root root  12K Apr 30 15:24 sender_canonical.db
-rw-r--r--  1 root root  11K May  2  2006 transport
-rw-r--r--  1 root root  12K Apr 30 15:24 transport.db
-rw-r--r--  1 root root  12K May  2  2006 virtual
-rw-r--r--  1 root root  12K Apr 30 15:24 virtual.db

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

Re: Postfix nimmt keine E-Mails von draußen an

Post by Joe User » 2007-06-02 22:48

Code: Select all

chmod 0644 /etc/postfix/confixx*
/etc/init.d/postfix restart
tail -n 20 /var/log/mail.log
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.

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-02 22:53

Danke für den Hinweis, aber es ist der Fehler in den Logs ist immer noch der selbe.
#
EDIT

mail.warn

Code: Select all

Jun  2 22:53:39 SuSE-101-32-LAMP postfix/master[8184]: warning: process /usr/lib/postfix/trivial-rewrite pid 8408 exit status 1
Jun  2 22:53:39 SuSE-101-32-LAMP postfix/master[8184]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Jun  2 22:54:40 SuSE-101-32-LAMP postfix/master[8184]: warning: process /usr/lib/postfix/trivial-rewrite pid 8417 exit status 1
Jun  2 22:54:40 SuSE-101-32-LAMP postfix/master[8184]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Jun  2 22:55:41 SuSE-101-32-LAMP postfix/master[8184]: warning: process /usr/lib/postfix/trivial-rewrite pid 8424 exit status 1
Jun  2 22:55:41 SuSE-101-32-LAMP postfix/master[8184]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Jun  2 22:56:42 SuSE-101-32-LAMP postfix/master[8184]: warning: process /usr/lib/postfix/trivial-rewrite pid 8434 exit status 1
Jun  2 22:56:42 SuSE-101-32-LAMP postfix/master[8184]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Jun  2 22:57:43 SuSE-101-32-LAMP postfix/master[8184]: warning: process /usr/lib/postfix/trivial-rewrite pid 8444 exit status 1
Jun  2 22:57:43 SuSE-101-32-LAMP postfix/master[8184]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Jun  2 22:58:44 SuSE-101-32-LAMP postfix/master[8184]: warning: process /usr/lib/postfix/trivial-rewrite pid 8451 exit status 1
Jun  2 22:58:44 SuSE-101-32-LAMP postfix/master[8184]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling

adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA

Re: Postfix nimmt keine E-Mails von draußen an

Post by adjustman » 2007-06-03 00:15

postfix stop && postfix start
postsuper -r ALL && postfix flush

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-03 16:44

Hatte ich auch schon probiert, ändert aber nichts an den Logs und an der Situation.

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: Postfix nimmt keine E-Mails von draußen an

Post by Roger Wilco » 2007-06-03 16:52

schrottie wrote:Hatte ich auch schon probiert, ändert aber nichts an den Logs und an der Situation.
Ich vermute deine master.cf ist kaputt. Poste deine master.cf in CODE-Tags, damit Einrückungen erhalten bleiben.

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-03 16:56

Ups hatte ich vergessen:

master.cf

Code: Select all

#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
#tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#localhost:10025 inet   n       -       n       -       -       smtpd -o content_filter=
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}

schrottie
Posts: 45
Joined: 2003-11-02 22:17

Re: Postfix nimmt keine E-Mails von draußen an

Post by schrottie » 2007-06-08 20:42

Hat keiner eine Idee?