postfix unter debian

hermanngc

New Member
Hallo,
ich habe einen dedicated server und alle wichigen Servermodule eingerichtet.
Für Mail benutze ich Dovecot IMAP/POP3 Server und Postfix.
Mail abholen klappt wunderbar, nur kann ich keine mails versenden.
weder plain noch tls oder ssh.
Habe soviel "rumgeschraubt", das jetzt verzweifle. Sehe im Moment den Wald vor lauter Bäumen nicht mehr.
Könnte mir jemand helfen, ich muss es bis morgen früh laufen haben.
ich kann gernen per pn einen Webmin-zugang schicken.
Gruß
hermann
 
Danke für die antwort...
1) im thunderbird habe ich folgende einstellungen
Server mail.radioregenbogen.eu
Port 25, TLS wenn möglich
Benutzername hermann.radioregenbogen
Password im moment hermann (in users definiert)
bei Verbindung kommt nach ca.1 minute, dass einer vebindung
nicht möglich ist.
2) master.cf ist "jungfräulich" mit
PHP:
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache	  unix	-	-	-	-	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/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

3. Main.cf:
PHP:
# 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 (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

# TLS parameters
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.
# The mydomain parameter specifies the local internet domain name.
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from.
myorigin = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = rbi0051.giga-dns.com, localhost.giga-dns.com,localhost, radioregenbogen.es, radioregenbogen.eu
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
sendmail_path = /usr/sbin/sendmail

setgid_group = postdrop
mailq_path = /usr/bin/mailq
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated permit_inet_interfaces
smtpd_use_tls = yes


was benötigst Du noch? und erstmal DANKE!
 
1.) Deine Benutzernamen und Passwörter würde ich hier mal schnell löschen. Das hat hier im öffentlichen Forum keinen zu interessieren, brauchen wir auch nicht um dir zu helfen!

2.) Interessant wären die Logeinträge aus dem Verzeichnis /var/log . Schau mal ob du da einen mail.log oder mail*.log hast.
 
Das passwort ändere ich sowieso, ist ja nur zum mail-test.
Andere Möglichkeiten hat der Benutzer nicht.
der "mail.log" ist alt. Keine neuen Eintrage von heute...
Unter "mail.info" sind nur die Meldungen:
fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
und "mail.err" auch: fatal: parameter "smtpd_recipient_restrictions"
 
Wie gesagt, ich habe im moment nen blackout...
PHP:
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated permit_inet_interfaces
Aber er fragt ja nichtmal nach einem passwort für den User!
erst dann weiss postfix doch erst, ob eine Regel wie permit_sasl_authenticated greift oder nicht....
 
habe doch jetzt nur tls und SASL ausgeschaltet. Er müsste mich doch wenigstens nach einem pw fragen(ist nicht gespeichert).
aber im moment klappt nix!
War mal soweit, dass der server nach dem pw fragte, aber es nicht akzeptierte.
wenn tls läuft wäre ich zufrieden....
wenn ich SASL aktiviere, kenn er den mailserver gar nicht
 
Danke, wieder einen Schritt weiter....
Anmeldung klappt, aber bekomme den fehler "Relay access denied"...
aber forsche mal weiter.
gruss aus Gran canaria
hermann
 
ok, erstmal ganz herzlichen dank.
schein ja da dasselbe problem zu sein,
melde mich morgen sonst.
Kompliment für deine Kompetrnz
Danke....
 
So, nachdem ich jetzt wieder stunden herumgedoctert habe...
Der Fehler "Relay access denied" bleibt nach wie vor.
Hier nochmal meine "main.cf":
PHP:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
fast_flush_domains = $relay_domains
in_flow_delay = 0
local_recipient_maps = $alias_maps unix:passwd.byname
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = 1st-position.info
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain, radioregenbogen.eu

myhostname = radioregenbogen.eu
mynetworks_style = host
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions =
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
strict_rfc821_envelopes = no
message_size_limit = 200000000
mailbox_size_limit = 500000000
virtual_maps = hash:/etc/postfix/virtual
header_checks = regexp:/etc/postfix/header_checks
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_delay_reject = no
 
Oki, werde dann weitersuchen.
Eine Frage, muss ich denn die User, die Mails via Postfix versenden, explizit nochmal anlegen? Kann ich nicht die System-User verwenden.
In meinem Beispiel ist der User hermann.radioregenbogen ja als user registriert und das Abholen der Mails klappt ja....
 
Danke, die Anleitung war spitze!
Hatte die Conf-Dateien in den anderen Verzeichnissen nicht geändert.
Es läuft! Danke an alle, die geantwortet hatten!
Gruss aus dem heissen Gran Canaria
hermann
 
Back
Top