PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Webmin/Usermin/Virtualmin + Email Forwarding?



Myrinia
22.01.12, 22:57
Hallo liebe Linux Fans :)

Ich habe heute ein Thema für euch, welches ihr vermutlich schon zur genüge gehört habt. Jedoch komme ich zur Zeit nicht weiter und ich habe mich schon mehrere Tage mit der Installation beschäftigt.

Es geht um folgendes.

Ich möchte aliases einrichten für meine Domain, auf dem Rootserver.
Postfix habe ich soweit schon installiert, jedoch lehnt dieser anscheinend alle anfragen ab und daher empfängt er auch keine E-Mails.

Was ich möchte ist:
www.domainname.de

ich@domainname.de
user2@domainname.de

jedoch empfange ich nichtmal ietwas,selbst wenn die /etc/aliases datei bereits darauf angepasst wurde.

Im Webmin Interface unter / Virtualmin, habe ich auch bereits die Mailalises eingetragen udn verwaltet, daraufhin postfix neugestartet jedoch leider weiter keinen Erfolg.

Da ich nun aber schon sehr viele Tutorials durchgelesen habe, und nicht mehr weiter komme, hoffe ich nun auf eure Hilfe!

Root Daten:

# cat /etc/issue
Debian GNU/Linux 6.0 \n \l

http://www.webtropia.com/home/professional-server.html || Server i5-6

zyrusthc
22.01.12, 23:15
Ja was steht in den Logs?
Mal manuell mit netcat am relay getestet?

Webmin würde ich mal ganz schnell wieder runter schmeissen vom Root!


Greeez Oli

Myrinia
23.01.12, 10:07
Hi Oli,

Leider kann ich keine LOG-Files ausfindig machen.
Der Postfix server startet auch, und läuft.

Jedoch bekomme ich weder über telnet localhost 25, telnet 127.0.0.1 , oder von meinem Heim Rechner aus keine telnet verbindung.

Der Test mit netcat bringt mir leider auch keine Ausgabe.

Den DOMAIN MX-Record habe ich auch schon auf die IP umgeleitet. Oder gehört hier der Domainname eingetragen, was für mich etwas unlogisch wäre, hinein.
Hier habe ich dir meine Config Dateien angehängt.

main.cf


smtpd_banner = $myhostname ESMTP
biff = no
append_at_myorigin =yes
append_dot_mydomain = yes
alias_maps =hash:/etc/aliases
alias_database =hash:/etc/aliases

# Falls Kononische Namen verwendet werden sollen!
#canonical_maps =hash:/etc/postfix/canonical
myhostname = meinedomain.de
mydomain = host.meinedomain.de
mydestination = localhost, localhost.meinedomain.de, localhost, meinedomain.de, meinedomain.eu
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#
message_size_limit =31457280
# 30MB
strict_rfc821_envelopes = yes
recipient_delimiter = +
disable_vrfy_command = yes
# TLS-SSL! Optional falls SSL benutzt werden soll
#smtp_tls_note_starttls_offer = yes
#smtpd_use_tls = yes
#smtpd_tls_security_level = may
#smtpd_tls_key_file =/etc/ssl/private/datei.key
#smtpd_tls_cert_file = /etc/ssl/certs/datei.crt
#smtpd_tls_CAfile = /etc/ssl/datei.ca-bundle
#smtpd_tls_loglevel =1
#smtp_tls_loglevel = 1
#smtpd_tls_received_header = no
# SMTPD
smtpd_helo_required = yes
smtpd_recipient_limit = 200
#
smtpd_sasl_auth_enable =yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
# SMTP
#smtp_host_lookup = dns,native
# oben auskommentiert lassen, da T-Online Mails sonst gebounct werden!!!
#
smtp_sasl_auth_enable = no
smtp_always_send_ehlo = yes
smtp_helo_timeout = 150s
smtp_skip_4xx_greeting = no
smtp_skip_5xx_greeting =no
smtp_rcpt_timeout = 40s
## SPAM Abwehr! Optional
#header_checks = pcre:/etc/postfix/check_header
#body_checks = pcre:/etc/postfix/check_body
#2 Domains
permit_mynetworks = meinedomain.de, meinedomain.eu
permit = true
smtpd_helo_restrictions = permit_mynetworks,
reject_invalid_hostname = false,
reject_unauth_pipelining = yes,
smtpd_sender_restrictions = permit_sasl_authenticated,

reject_rhsbl_sender = dsn.rfc-ignorant.org,
smtpd_recipient_restrictions = permit_sasl_authenticated,

#
# reihenfolge nicht ändern - wegen spf
check_policy_service = unix:private/spfcheck,
# reihenfolge nicht ändern - wegen spf
#
reject_rhsbl_sender = dsn.rfc-ignorant.org,
# check_client_access hash:/etc/postfix/polw_client_whitelist,
# check_recipient_access hash:/etc/postfix/polw_recipient_whitelist,
check_policy_service= inet:127.0.0.1:12525
#
policy_time_limit = 3600
#
################################################## ####################
#
content_filter = scan:[127.0.0.1]:10025
home_mailbox = Maildir/
mailbox_command = procmail -a "$EXTENSION"
virtual_alias_maps = hash:/etc/postfix/virtual
myorigin = /etc/mailname
relayhost =
mailbox_size_limit = 0
inet_interfaces = all
inet_protocols = all


master.cf

#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
#
# AV scan filter (used by content_filter)
scan unix - - n - 64 smtp
-o smtp_send_xforward_command=yes
-o smtp_enforce_tls=no
# For injecting mail back into postfix from the filter
127.0.0.1:8888 inet n - n - 64 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_chec ks,no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
smtp inet n - n - - smtpd
#
# hier Restteil der Original master.cf
#
# Letzte Zeile so einfügen:
# SPF-check aktivieren
spfcheck unix - n n - 0 spawn
user=policyd-spf argv=/usr/sbin/postfix-policyd-spf-perl

smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#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
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry 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}
#
# ================================================== ==================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
# mailbox_transport = lmtp:inet:localhost
# virtual_transport = lmtp:inet:localhost
#
# ================================================== ==================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus unix - n n - - pipe
# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ================================================== ==================
# Old example of delivery via Cyrus.
#
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ================================================== ==================
#
# 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}

zyrusthc
23.01.12, 13:49
Du kannst keine Log Files ausfindig machen? Das musst du mal genauer erklären?
Hört postfix überhaupt auf seinem Port? netstat -tulpen

Greeez Oli

Myrinia
23.01.12, 14:58
Danke Oli, dass du mir hilfst.

Könntest du mir sagen, wo die Log Daten für Postfix normalerweise sein sollten ? :confused:

Hier hast du die ausgabe von netstat -tulpen.

Ich sehe hier jedoch nichts was postfix ähnlich sieht.


> netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 111 1092441 20155/mysqld
tcp 0 0 meine_ip:3724 0.0.0.0:* LISTEN 0 1083052 13106/authserver
tcp 0 0 127.0.0.1:12525 0.0.0.0:* LISTEN 0 24218 12546/policyd-weigh
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 0 1208288 29490/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 0 1208286 29490/dovecot
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 5290 1688/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 0 1092045 18841/perl
tcp 0 0 0.0.0.0:30033 0.0.0.0:* LISTEN 0 319358 18405/ts3server_lin
tcp 0 0 meine_ip:8085 0.0.0.0:* LISTEN 0 1083691 13142/worldserver
tcp 0 0 meine_ip:53 0.0.0.0:* LISTEN 114 581720 16181/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 114 581718 16181/named
tcp 0 0 meine_ip:8086 0.0.0.0:* LISTEN 0 1083365 13118/worldserver
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 334900 21256/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 1132087 14697/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 114 581723 16181/named
tcp 0 0 meine_ip:8090 0.0.0.0:* LISTEN 0 1083947 13189/worldserver
tcp 0 0 0.0.0.0:10011 0.0.0.0:* LISTEN 0 320087 18405/ts3server_lin
tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN 0 1135554 15518/perl
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 1208287 29490/dovecot
tcp 0 0 0.0.0.0:58306 0.0.0.0:* LISTEN 103 4115 982/rpc.statd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 0 1208289 29490/dovecot
tcp6 0 0 :::80 :::* LISTEN 0 1138913 2144/apache2
tcp6 0 0 :::53 :::* LISTEN 114 581713 16181/named
tcp6 0 0 :::22 :::* LISTEN 0 334902 21256/sshd
tcp6 0 0 :::25 :::* LISTEN 0 1132089 14697/master
tcp6 0 0 ::1:953 :::* LISTEN 114 581724 16181/named
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 5289 1688/portmap
udp 0 0 meine_ip:123 0.0.0.0:* 0 4658 1442/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 0 4657 1442/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 0 4645 1442/ntpd
udp 0 0 0.0.0.0:9987 0.0.0.0:* 0 320032 18405/ts3server_lin
udp 0 0 0.0.0.0:10000 0.0.0.0:* 0 1092046 18841/perl
udp 0 0 0.0.0.0:32917 0.0.0.0:* 103 4111 982/rpc.statd
udp 0 0 0.0.0.0:20000 0.0.0.0:* 0 1135555 15518/perl
udp 0 0 meine_ip:53 0.0.0.0:* 114 581719 16181/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 114 581717 16181/named
udp 0 0 0.0.0.0:734 0.0.0.0:* 0 4090 982/rpc.statd
udp6 0 0 2001:4ba0:fff3:26:::123 :::* 101 5088 1442/ntpd
udp6 0 0 fe80::227:eff:fe11::123 :::* 0 4660 1442/ntpd
udp6 0 0 ::1:123 :::* 0 4659 1442/ntpd
udp6 0 0 :::123 :::* 0 4646 1442/ntpd
udp6 0 0 :::53 :::* 114 581712 16181/named


lg

zyrusthc
23.01.12, 15:12
Danke Oli, dass du mir hilfst.

Könntest du mir sagen, wo die Log Daten für Postfix normalerweise sein sollten ? :confused:

Hier hast du die ausgabe von netstat -tulpen.

Ich sehe hier jedoch nichts was postfix ähnlich sieht.

Log Dateien sind immer unter /var/log zu finden!


tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 1132087 14697/master
Du solltest den Standartport schon kennen!

Sorry aber du hast einen Rootserver und weisst überhaupt nicht was du da machst, Du kennst weder Log Files noch Standartports.
PS: Und mach deine IP unsichtbar! Jeder der hier mit liest hat jetzt die IP deines Servers der offenbar von einen Neuling administriert wird.


Greeez Oli

Myrinia
23.01.12, 17:27
Hallo Oli,

Mir ist durchaus bewusst, dass der Standardport 25 ist, jedoch habe ich nicht nach etwas wie "master" gesucht sondern etwas wie mit postfix oder mail.

Die Ports habe ich mir hier garnicht angesehen.

Das ich blutiger Anfänger bin in diesem Bereich ist mir klar, desshalb bin ich auch hier, um etwas dazu zu lernen :-)

Die IP Adresse hatte ich absichtlich drinnen gelassen, damit man von außen versuchen kann via telnet eine Verbindung herzustellen.

Wiedem auch sei:
Mein Log sagt folgendes:


Jan 23 17:12:24 meinedomain postfix/smtpd[8059]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Jan 23 17:12:25 meinedomain postfix/master[14697]: warning: process /usr/lib/postfix/smtpd pid 8059 exit status 1
Jan 23 17:12:25 meinedomain postfix/master[14697]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

stefan.becker
23.01.12, 17:32
http://be-jo.net/2011/10/vserver-erfahrungen-eines-einsteigers/

Immer wieder gerne gelesen. Das Lernen sollte bei einem Server vor der Anschaffung stehen.

Alternativ die IP-Adresse in einem WareZ Forum posten, dann kümmern sich fähige Admins um die Verwaltung.

zyrusthc
23.01.12, 17:42
http://www.unixboard.de/vb3/showthread.php?25668-email-funzt-nichtmer&p=199062&viewfull=1#post199062