Lokale emailadressen - postfix

Post Reply
Message
Author
Lex

Lokale emailadressen - postfix

#1 Post by Lex »

Hab einen kombinierten dns/webserver, postfix ist installiert, wird aber nicht weiter genutzt, brauch ihn nur zum senden von meiner homepage.
Mails zu anderen allen domains bis auf zu meiner kommen auch an. nur die eigen laufen nicht auf meinem mailserver (weitere maschine) auf.
(dns records sind richtig gesetzt, sonst keine probs mit mail empfang) hat jemand eine idee, was an postfix geändert werden muß?

Rossi

Re: Lokale emailadressen - postfix

#2 Post by Rossi »

Kannst Du bitte ein wenig konkreter werden ? Wo steht der Webserver (ich nehme an bei Dir zu Hause) ? Dyn. IP ? Wie willst Du von der Homepage mails verschicken, Webmail ? Wie sieht Deine main.cf aus (bitte ohne Kommentare posten: grep -v ^# main.cf )
Steh heut ein wenig auf dem Schlauch, sorry, aber Dein Problem kann ich nicht ganz nachvollziehen.

Lex

Re: Lokale emailadressen - postfix

#3 Post by Lex »

Also als da wären: 1. dns/www an statischer ip 2. mailserver an dynamischer ip (über eigenen dyndns client/server gesteuert.
auf meinem www-server läuft ein forum von diesem aus werden mails verschickt. nachrichteneingang usw. funzt auch genauso wie mail (von der shell) user@irgendwas.de, nur an mailadressen, von der eigenen domain werden nicht zugestellt.

main.cf kommt gelich...

@Rossi: Danke vorab!

Lex

Re: Lokale emailadressen - postfix

#4 Post by Lex »

@rossi:

so die main.cf:

# SOFT BOUNCE

#soft_bounce = no


command_directory = /usr/sbin


daemon_directory = /usr/libexec/postfix


mail_owner = mail


#default_privs = nobody


#myhostname = host.domain.name
#myhostname = virtual.domain.name


#mydomain = domain.name

# 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


#
# relayhost = $mydomain
# relayhost = gateway.my.domain
# relayhost = uucphost
# relayhost = [an.ip.add.ress]




#
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/postfix/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)


#home_mailbox = Mailbox
home_mailbox = Maildir/

# mail_spool_directory = /var/spool/mail


#
mailbox_command = /usr/bin/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
#
# The controls listed here are only a very small subset. See the file
# sample-smtpd.cf for an elaborate list of anti-UCE controls.


#header_checks = regexp:/etc/postfix/filename
#header_checks = pcre:/etc/postfix/filename

#relay_domains = $mydestination

#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks


#fast_flush_domains = $relay_domains
#fast_flush_domains =

# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)


local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10


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

# Other configurable parameters.
alias_database = hash:/etc/postfix/aliases
mydestination = $myhostname, localhost.$mydomain, $mydomain
myorigin = $mydomain
ignore_mx_lookup_error = yes
luser_relay = fkx200@t-online.de

Rossi

Re: Lokale emailadressen - postfix

#5 Post by Rossi »

Zuerst fällt mir auf, das $myhostname und $mydomain nicht definiert sind - normalerweise findet postfix die alleine raus, würde mich aber darauf nicht verlassen.

Zusammenfassung: Du willst, das mails von dem Webserverrechenr (vom Forum geschickt) zu Dir nach Hause kommen, und das klappt nicht ? Die mailbox (Maildir) liegt auf dem dyn-ip Rechner ?
Mit eigener Domäne meinst Du die dyndns Domäne oder die "richtige" vom Webserver.
Sagen wir, die Webseite hat die adresse www.test.de und der andere Rechner hat test.dyndns.org - welche Mailzustellung klappt nicht ?

Von user1@test.de nach user2@test.de ? Von user1@extern.de nach user2@test.de ?

Was ich nicht weiß, ob Dein Maildir Probleme macht,weil ich mit Maildir noch nie gearbeitet hab, gehe aber mal davon aus, das da alles richtig ist.

Post Reply