Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix nur localhost?
Huhn Hur Tu
09.06.05, 20:21
Ich habe nach der Anleitung von linux-Tin.org einen Cyrus/Postfix/Fetchmail Mailserver aufgesetzt.
Alles scheint soweit zu funktionieren und mein Testuser kann im Client auch Ordner erstellen und Emils empfangen.
Doch leider klappt der Versamd nicht.
Problemreduzierung: Postfix ist localhost ueber netcat/telnet anwesend aber vom Lan aus nicht.
Ein scan mit Nmap zeigt dass auf Port 25 kein Dienst lauscht.
Irgendwelche Ideen.
MFG Stefan
Hi,
vom LAN heraus heisst der ja auch nicht localhost; aber ich denke mal, dass du das nur etwas unglücklich formuliert hast.
Gehen denn ping und traceroute? Typische Verdächtige sind meist eine Firewall und/oder fehlerhafte Netzkonfiguration (IP, Netzmaske etc.).
LKH
Was sagt denn:
postconf |grep inet_interfaces
Huhn Hur Tu
09.06.05, 21:14
Der Server macht im Moment Routing mit Firewall nach aussen und Masquerding.
/etc/postfix/main.conf:
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = nobody
mynetworks = 192.168.110.0/24 127.0.0.0/8
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
default_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
luser_relay = $root@mail.terrorkom.mine.nu
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = 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 = mail.doamin.tld
mydomain = domain.tld
myorigin = $mydomain
program_directory = /usr/lib/postfix
inet_interfaces = 127.0.0.1 ::1
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain
defer_transports = smtp
default_transport = smtp
disable_dns_lookups = no
relayhost = mail.isp.de
mailbox_command = /usr/lib/cyrus/bin/deliver
mailbox_transport = cyrus
fallback_transport = cyrus
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
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
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 1110240000
server:~ # postconf |grep inet_interfaces
inet_interfaces = 127.0.0.1 ::1
local_header_rewrite_clients = permit_inet_interfaces
Mir schwant schon etwas kann es aber noch nicht ganz fassen.
MFG Stefan
Huhn Hur Tu
09.06.05, 21:25
Aaaaah habs gefunden.
inet_interfaces: all statt auf 127.0.0.1 beschraenken.
TXH Stefan
Huhn Hur Tu
09.06.05, 21:31
Boah ey nee.
Mit der letzten Aenderung ist port 25 zwar Scanbar aber ich kann ihn nicht mehr mit Netcat ansprechen, hmpf.
MFG Stefan
Huhn Hur Tu
09.06.05, 21:37
Dann noch die /etc/postfix/master.conf:
================================================== ========================
# 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_authenticate d,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
#
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}
hmpf
MFG Stefan
Benutze bitte die Code-Tags (http://www.linuxforen.de/forums/misc.php?do=bbcode#code) des Forums. Danke.
Blackcollar
09.06.05, 22:39
vor allem :
läuft er jetzt oder läuft er net ?
Huhn Hur Tu
10.06.05, 17:36
Nee laeuft nich. entweder nur localhost oder gar net----> siehe oben
MFG stefan
@HuhnHurTu kommentiere mal in der main.cf
defer_transports = smtpaus.
Was steht in der cannonical maps?
Die master.cf Konfiguration stimmt nicht ganz, schau in der linux-tin.org Anleitung genauer nach...
Huhn Hur Tu
13.06.05, 11:44
Hat alles nicht geholfen, so hab ich mir auf brachiale Weise selbst geholfen.
rm -rf /etc/postfix
rpm -ivh --force --allfiles postfix-version.rpm
Konfigs neu ueberarbeitet und jetzt funzt.
Ich denke ich hab irgendwelchen Muell in der Konfig gebaut.
Danke Stefan
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.