PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : postfix, qpopper - Hilfe



John2By
25.12.02, 13:06
Hallo

Ich stehe in der Prerie und weiss nicht mehr weiter.

Also, ich möchte einen standalone E-Mail server konfigurieren. Dieser Mail server sollte emails in empfang nehmen können, diese in die postfächer der user legen und die user sollten die mails via pop3 abholen können. Ich habe eine Standleitung und eine fixe ip adresse. Mein Mail server ist SuSe 8.0 und steht in einer DMZ, hinter einer firewall. Die firewall leitet alle anfragen an SMTP, und POP3 Ports weiter an meinen mail server. So bis hier her kein problem. Nun habe ich mir ein Postfix buch gekauft und gehoft das ich es mit diesem auf die reihe bringe. Leider ist dies nicht ganz der fall.

habe postfix installiert und er läuft. Jedoch nimmt er mir keine Emails an und das mit dem pop3 server geht irgendwie auch nicht. als pop3 server benutzte ich qpopper, bin jedoch sofort bereit auf einen anderen umzusteigen. Mein problem, ich weiss nicht genau, wie ich das machen muss. Wäre überglücklich, wenn mir jemand einen link zu einem How to oder tutorial geben kann, oder mit ein buch empfehlen kann, irgendwas, womit ich in der lage bin einen mta und einen pop3 server zu installieren und konfigurieren. Das postfix buch ist von suse und eigentlich nicht schlecht, jedoch sagt es mir nichts wie das mit empfang und pop3 ist.


Bitte hilfe.

Danke

gruss john

John2By
25.12.02, 14:21
Hat denn keiner eine Antwort für mich? :-( Wäre aber schön!!!

dauni
25.12.02, 15:18
Vielleicht hilft ja das:
http://linuxnetmag.berlios.de/de/issue8/m8mailserver1.html

John2By
25.12.02, 15:26
Danke für den link, hat mir jedoch nicht geholfen.
----
Also leute, falls jemand eine gute tutorial mit qmail weiss, dann steige ich auch auf qmail um. Mir ist es nur wichtig das es lauft.

mfg john

Jinto
25.12.02, 16:12
Deutsch oder Englisch?

Was funktioniert denn schon und was nicht?

John2By
25.12.02, 16:20
Am liebsten wäre mir Deutsch, englisch würde jedoch auch gehen.

Nun was läuft!!! Ich habe mal die virtual, access, canonical tabels konfiguriert, soweit ich das zumindest wusste. Der popper habe ich in der inetd.conf aktiviert. Das ist eigentlich schon alles was ich gemacht habe. Ach und die master.cf und die main.cf sind auch konfiguriert. Leider tut das mit dem mail abholen via pop3 nicht und das mit dem smtpd tut auch nicht ganz. Er nimmt sie zwar entgegen, jedoch kann er sie nicht zuordnen und gibt die mail zurück.

Kannst du mir helpen?

mfg john

Jinto
25.12.02, 17:54
Ein guter Einstiegspunkt ist: www.postfix.org

Leider sind deine Beschreibungen ziemlich dürftig. Ich weiss immer noch nicht, was denn nun wie nicht funktioniert (z. B. Fehlermeldungen beim Empfang/Versand, etc). Wie deine Config-Files aussehen, an der virtual o. a. musste ich z. B. keine Veränderungen vornehmen. Aber das hängt auch von dem Einsatzzweck ab.

Am besten du schaust dir ein paar config Beispiele auf der Postfix-Homepage an (passend zu deinem Szenario).

HTH

John2By
25.12.02, 17:59
Also, ich war bereits auf postfix...mit müh und not muss ich glaub durch kämpfen.

Mein problem ist, das ich nicht weiss wie ich dem mail server sagen kann, das er die mails von der adresse x@x.de in das postfach x legen soll. Und ich weiss auch nicht wieso das mit dem pop3 server nicht tut, und wieso man da nichts einstellen muss. Der client kann bisher nur emails an die info@x.de senden, aber nur über meinen smtp dienst, schicke ich die gleiche mail über einen anderen smtp, dann geht es nicht. und bei dem pop3 abholen bringt er keine verbindung hin.

mfg john

Jinto
25.12.02, 18:11
In der default Einstellung akzeptiert postfix AFAIK alle Server. Postzustellung funktioniert nur für User, die auf diesem System existieren.

Post doch mal deine main.cf, dort wird geregelt von welchen Computern Mails akzeptiert werden.

HTH

NACHTRAG:
POP abholen, funktioniert nur für Benutzer die auf dem System existieren (ausser root).

John2By
25.12.02, 18:19
Hier meine main.cf
------------------------------
#soft_bounce = no
#default_privs = nobody

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix

myhostname = rodemail.lead.ch
smtpd_banner = $myhostname ESMTP

mydomain = lead.ch

mynetworks = 172.168.0.2, 194.208.64.176, 192.168.0.1, 127.0.0.0/8
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain, rodemail.lead.ch

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
smtpd_sender_restrictions = hash:/etc/postfix/access
transport_maps = hash:/etc/postfix/transport

debug_peer_level = 2


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

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /etc/postfix


readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
mail_name = Postfix on SuSE Linux

#sender_canonical_maps = hash:/etc/postfix/sender_canonical

masquerade_exceptions = root
#inet_interfaces =
#masquerade_domains =
#mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
defer_transports =
disable_dns_lookups = no
content_filter =
message_size_limit = 20240000




# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for. That includes
# Sendmail-style virtual domains hosted on this machine.
#
# Do not include Postfix-style virtual domains - those domains are
# specified elsewhere (see sample-virtual.cf, and sample-transport.cf).
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain. Do not specify the
# names of domains that this machine is backup MX host for. Specify
# those names via the relay_domains or permit_mx_backup settings for
# the SMTP server (see sample-smtpd.cf).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key. Continue long lines by starting the
# next line with whitespace.
#
#mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
#mydestination = $myhostname, localhost.$mydomain, $mydomain,mail.$mydomain, www.$mydomain, ftp.$mydomain

# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in file sample-smtpd.cf.
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

# The relay_domains parameter restricts what clients this mail system
# will relay mail from, or what destinations this system will relay
# mail to. See the smtpd_recipient_restrictions restriction in the
# file sample-smtpd.cf for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients whose IP address matches $mynetworks,
# - from "trusted" clients matching $relay_domains or subdomains thereof,
# - from untrusted clients to destinations that match $relay_domains
# or subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_maps.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction in the file sample-smtpd.cf.
#
#relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all users that are local with respect to $mydestination and
# $inet_interfaces. If this parameter is defined, then the SMTP server
# will reject mail for unknown local users.
#
# If you use the default Postfix local delivery agent for local
# delivery, uncomment the definition below.
#
# Beware: if the Postfix SMTP server runs chrooted, you may have to
# copy the passwd (not shadow) database into the jail. This is
# system dependent.
#
#local_recipient_maps = $alias_maps unix:passwd.byname

# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 50 SMTP server process
# limit, this limits the mail inflow to 50 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
# Insert text from sample-rewrite.cf if you need to do address
# masquerading.
#
# Insert text from sample-canonical.cf if you need to do address
# rewriting, or if you need username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# Insert text from sample-virtual.cf if you need virtual domain support.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# Insert text from sample-relocated.cf if you need "user has moved"
# style bounce messages. Alternatively, you can bounce recipients
# with an SMTP server access table. See sample-smtpd.cf.

# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need explicit routing.

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#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

# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(8), relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
#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

#header_checks = regexp:/etc/postfix/header_checks

#fast_flush_domains = $relay_domains
#fast_flush_domains =

#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# most delivery transports. For the local delivery agent the default is 2.

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 10

-----------------------------------------------------------------------
die domain die ich unteranderem verwalten möchte ist lead.ch
der mx ist rodemail.lead.ch

danke für deine hilfe

mfg john

Jinto
26.12.02, 14:45
Deine Config sieht soweit eigentlich in Ordnung aus. Kann es sein, dass dein MX Eintrag falsch ist?

John2By
26.12.02, 14:47
Das glaub ich nicht. Der MX Eintrag wurde von meinem DNS Provider vorgenommen und die sollten wissen was sie tun.

Kann es ev. am qpopper liegen?

Jinto
26.12.02, 14:56
Nein, der qpopper ist nur dafür zuständig, dass _du_ deine Mails von diesem Server mittels Mailclient (KMail, Outlook, etc abholen kannst). Für die zustellung ist in deinem Fall postfix zuständig.

John2By
26.12.02, 14:58
sorry, ich habe das problem mit dem empfangen zum teil schon gelöst, jetzt bin ich wegen dem pop3 zugang dran, der will nähmlich auch nicht. hast du dazu vielleicht eine idee?

mfg john

Jinto
26.12.02, 15:08
Eigentlich gibt es bei POP3 nicht viel zu konfigurieren.
1. Du musst qpopper installieren (oder einen anderen Popserver)
2. Eintragen des Dienstes in der inetd.conf
3. Abrufen der Mails eines users (ausser root), Benutzername und Kennwort entsprechen denen des Benutzers

John2By
26.12.02, 15:11
ich danke dir, habe den fehler gfunden. Es war der User, ich habe ihn neu angelegt und volià!

Danke für deine hilfe. Somit ist dieses thema abgehakt.


MFG john

Jinto
26.12.02, 15:19
Bitte und viel Spaß mit deinem neuen Mailserver.

John2By
26.12.02, 15:21
Danke, das werde ich haben :-)

Cieni
26.12.02, 18:38
Also wenn ich es nicht übersehen habe muß noch das # vor
#relay_domains = $mydestination
verschwinden.

Cieni

Cieni
26.12.02, 18:41
Ist das qpopper-Paket installiert ?
Weil es ist ein eigenständifes Paket und gehört nicht zu Postfix.
(Hatte ich auch schon mal vergessen.)

John2By
26.12.02, 18:45
Das mit dem relay_domains = $mydestination ist ein wunderbare idee, war nähmlich auskommentiert. Thanks.


mfg john

Jinto
26.12.02, 19:08
Ob die auskommentiert ist oder nicht ist wurscht, denn wie der Text derüber schon sagt:
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_maps.
# These destinations do not need to be listed in $relay_domains.

Ich dachte, du hättest jetzt alle Probleme beseitigt?

John2By
26.12.02, 19:16
Ja, fast alle probleme, bis auf eines, ich denke jedoch das die eine einstellungssache ist.

Er nimmt keine mails von anderen domains an, obwohl ich diese explizit angeben habe. Aber das wäre nicht weiteres schlimm.

Falls du jedoch eine idee hast, nur her damit!


mfg john

Jinto
27.12.02, 11:38
Er sollte alle Mail annehmen, die an die einträge in mydestination angegeben sind 8und das tut er bei dir auch :))

HTH

John2By
27.12.02, 11:40
Ich habe es gesehen das du eine Test mail geschrieben hast, jedoch meinte ich nicht das, sondern das er über rodemail.lead.ch keine anderen Mails annimmt.

Jinto
27.12.02, 11:59
Wie meinst du keine anderen Mails?

Sofern der User bzw. Alias existiert müsste es doch auch mit rodemail.lead.ch funktionieren.

PS: Es waren zwei Mails, die eine habe ich direkt bei dir eingelifert (über deinen Postfix), die andere habe ich versucht über Hotmail dir zu schicken (was eine Fehlermeldung hervorrief).

John2By
27.12.02, 12:11
Also, wenn ich z.b. eine mail an gurken@fein.com möchte über meine rodemail.lead.ch schicken, dann kommt die nie an, weil sie nicht raus geht.

Das es bei dir nicht geklappt hat, lag daran, das ich erst nachher die konf. verbesserte. Jetzt tut das. habe den mailserver momentan vom netz genommen.

Jinto
28.12.02, 03:55
Das stimmt nicht ganz. Diese Mail kommt nicht an, weil dein Postfix diese Mail schon gar nicht annimt. Postfix nimmt nur Mails von Computern an, die in mynetworks vermerkt sind.

HTH

John2By
28.12.02, 10:19
aha, gut zu wissen. wie stehle ich in postfix das smtp after pop ein?? Irgend etwas mit einem script?!?

mfg john

Jinto
28.12.02, 17:55
http://www.postfix.org/faq.html#mobile