Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
gregstar
Posts: 4 Joined: 2006-09-20 10:40
Post
by gregstar » 2006-09-20 10:58
Hallo Leute!
Ich habe mir notgedrungen einen eigenen VServer gemietet und darauf die Standardinstallation von VHCS und Debian raufgeladen. Es funktioniert alles super bis auf Mail. Als MTA fungiert Postfix, Courier für POP3 und IMAP sowie SASL für die Authentifizierung per SMTP. Nun habe ich folgendes Problem: versenden von Mails funktioniert, nur wenn ich welche empfangen möchte zb von Yahoo bekomme ich bei Yahoo folgendes zurück:
Code: Select all
550 <5ai@5ai.gregstar.at>: Recipient address rejected: User unknown in local recipient table
hier meine main.cf:
Code: Select all
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
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
myhostname = server1.gregstar.at
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server1.gregstar.at, lichtscheidl.hierverwalten.de, localhost.hierverwalten.de, localhost, 5ai.gregstar.at, badundwohnkultur.at
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
master.cf:
Code: Select all
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
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
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -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}
# only used by postfix-tls
#tlsmgr fifo - - n 300 1 tlsmgr
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
main.cf.dpkg-dist:
Code: Select all
#
# Postfix MTA Manager Main Configuration File;
#
# Please do NOT edit this file manually;
#
#
# Postfix directory settings; These are critical for normal Postfix MTA functionallity;
#
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
#
# Some common configuration parameters;
#
inet_interfaces = all
mynetworks_style = host
myhostname = server1.gregstar.at
mydomain = server1.gregstar.at.
myorigin = $mydomain
smtpd_banner = $myhostname VHCS2 2.4 (Spartacus) Managed ESMTP 2.4.7.1
setgid_group = postdrop
#
# Receiving messages parameters;
#
mydestination = $myhostname, $mydomain
append_dot_mydomain = no
append_at_myorigin = yes
local_transport = local
virtual_transport = virtual
transport_maps = hash:/etc/postfix/vhcs2/transport
#
# Delivering local messages parameters;
#
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 0
mailbox_command = procmail -a "$EXTENSION"
biff = no
alias_database = hash:/etc/aliases
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
#
# Delivering virtual messages parameters;
#
virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_limit = 0
virtual_mailbox_domains = hash:/etc/postfix/vhcs2/domains
virtual_mailbox_maps = hash:/etc/postfix/vhcs2/mailboxes
virtual_alias_maps = hash:/etc/postfix/vhcs2/aliases
virtual_minimum_uid = 107
virtual_uid_maps = static:107
virtual_gid_maps = static:8
#
# SASL paramters;
#
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
permit_mydestination,
reject_unauth_destination
Könnt ihr mir helfen? Ich verzweifle wirklich daran. Das größte Problem ist, dass ich deswegen keinen Webserver umzug machen kann, da die E-Mail Accounts ja nicht funktionieren :(
Roger Wilco
Posts: 5923 Joined: 2004-05-23 12:53
Post
by Roger Wilco » 2006-09-20 18:37
Code: Select all
mv main.cf main.cf.old && cp main.cf.dpkg-dist main.cf && /etc/init.d/postfix restart
gregstar
Posts: 4 Joined: 2006-09-20 10:40
Post
by gregstar » 2006-09-21 20:56
Es kommt kein Mailerdaemon beim E-Mail Account, aber nun folgende Meldungen in der /var/log/mail.info:
Code: Select all
Sep 21 20:50:22 lichtscheidl postfix[11986]: warning: valid_hostname: misplaced delimiter: server1.gregstar.at.
Sep 21 20:50:22 lichtscheidl postfix[11986]: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
Sep 21 20:50:23 lichtscheidl postfix[12017]: warning: valid_hostname: misplaced delimiter: server1.gregstar.at.
Sep 21 20:50:23 lichtscheidl postfix[12017]: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
Sep 21 20:50:44 lichtscheidl postfix/smtpd[12021]: warning: valid_hostname: misplaced delimiter: server1.gregstar.at.
Sep 21 20:50:44 lichtscheidl postfix/smtpd[12021]: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
Sep 21 20:50:45 lichtscheidl postfix/master[10928]: warning: process /usr/lib/postfix/smtpd pid 12021 exit status 1
Sep 21 20:50:45 lichtscheidl postfix/master[10928]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Sep 21 20:51:38 lichtscheidl imaplogin: LOGIN, user=5ai@5ai.gregstar.at, ip=[::ffff:193.171.131.241], protocol=IMAP
Sep 21 20:51:43 lichtscheidl imaplogin: LOGIN, user=5ai@5ai.gregstar.at, ip=[::ffff:193.171.131.241], protocol=IMAP
Sep 21 20:51:45 lichtscheidl postfix/smtpd[12026]: warning: valid_hostname: misplaced delimiter: server1.gregstar.at.
Sep 21 20:51:45 lichtscheidl postfix/smtpd[12026]: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
Sep 21 20:51:46 lichtscheidl postfix/master[10928]: warning: process /usr/lib/postfix/smtpd pid 12026 exit status 1
Sep 21 20:51:46 lichtscheidl postfix/master[10928]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Sep 21 20:52:26 lichtscheidl courierpop3login: LOGIN, user=5ai@5ai.gregstar.at, ip=[::ffff:127.0.0.1]
Sep 21 20:52:26 lichtscheidl courierpop3login: LOGOUT, user=5ai@5ai.gregstar.at, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
Sep 21 20:52:46 lichtscheidl postfix/smtpd[12031]: warning: valid_hostname: misplaced delimiter: server1.gregstar.at.
Sep 21 20:52:46 lichtscheidl postfix/smtpd[12031]: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
Sep 21 20:52:47 lichtscheidl postfix/master[10928]: warning: process /usr/lib/postfix/smtpd pid 12031 exit status 1
Sep 21 20:52:47 lichtscheidl postfix/master[10928]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Sep 21 20:53:47 lichtscheidl postfix/smtpd[12032]: warning: valid_hostname: misplaced delimiter: server1.gregstar.at.
Sep 21 20:53:47 lichtscheidl postfix/smtpd[12032]: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
Sep 21 20:53:48 lichtscheidl postfix/master[10928]: warning: process /usr/lib/postfix/smtpd pid 12032 exit status 1
Sep 21 20:53:48 lichtscheidl postfix/master[10928]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
rootsvr
Posts: 538 Joined: 2005-09-02 11:12
Post
by rootsvr » 2006-09-21 21:14
Fehlermeldung abarbeiten.. deine main.cf ist anscheinend (immernoch) falsch.
fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: server1.gregstar.at.
ist da am Ende ein Punkt wo keiner hingehört?
gregstar
Posts: 4 Joined: 2006-09-20 10:40
Post
by gregstar » 2006-09-21 21:39
punkt habe ich jetzt entfernt, jetzt gibts probleme mim lookup ...
Code: Select all
Sep 21 21:31:25 lichtscheidl postfix/smtpd[12447]: connect from web26611.mail.ukl.yahoo.com[217.146.177.63]
Sep 21 21:31:25 lichtscheidl postfix/smtpd[12447]: lost connection after CONNECT from web26611.mail.ukl.yahoo.com[217.146.177.63]
Sep 21 21:31:25 lichtscheidl postfix/smtpd[12447]: disconnect from web26611.mail.ukl.yahoo.com[217.146.177.63]
Sep 21 21:31:25 lichtscheidl postfix/smtpd[12446]: connect from web26611.mail.ukl.yahoo.com[217.146.177.63]
Sep 21 21:31:25 lichtscheidl postfix/smtpd[12446]: lost connection after CONNECT from web26611.mail.ukl.yahoo.com[217.146.177.63]
Sep 21 21:31:25 lichtscheidl postfix/smtpd[12446]: disconnect from web26611.mail.ukl.yahoo.com[217.146.177.63]
Sep 21 21:32:57 lichtscheidl courierpop3login: LOGIN, user=5ai@5ai.gregstar.at, ip=[::ffff:127.0.0.1]
Sep 21 21:32:57 lichtscheidl courierpop3login: LOGOUT, user=5ai@5ai.gregstar.at, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
Sep 21 21:33:19 lichtscheidl postfix/postfix-script: stopping the Postfix mail system
Sep 21 21:33:19 lichtscheidl postfix/master[10928]: terminating on signal 15
Sep 21 21:33:20 lichtscheidl postfix/postfix-script: starting the Postfix mail system
Sep 21 21:33:20 lichtscheidl postfix/master[12557]: daemon started -- version 2.1.5
Sep 21 21:34:19 lichtscheidl postfix/smtpd[12565]: connect from web26604.mail.ukl.yahoo.com[217.146.176.54]
Sep 21 21:34:20 lichtscheidl postfix/smtpd[12565]: warning: unknown smtpd restriction: "permit_mydestination"
Sep 21 21:34:20 lichtscheidl postfix/smtpd[12565]: NOQUEUE: reject: RCPT from web26604.mail.ukl.yahoo.com[217.146.176.54]: 451 Server configuration error; from=<g_lichtscheidl@yahoo.de> to=<5ai@5ai.gregstar.at> proto=SMTP helo=<web26604.mail.ukl.yahoo.com>
Sep 21 21:34:20 lichtscheidl postfix/cleanup[12567]: 173B494398: message-id=<20060921193420.173B494398@server1.gregstar.at>
Sep 21 21:34:20 lichtscheidl postfix/smtpd[12565]: disconnect from web26604.mail.ukl.yahoo.com[217.146.176.54]
Sep 21 21:34:20 lichtscheidl postfix/qmgr[12562]: 173B494398: from=<double-bounce@server1.gregstar.at>, size=750, nrcpt=1 (queue active)
Sep 21 21:34:20 lichtscheidl postfix/local[12568]: warning: lookup owner-postmaster, NIS domain hierverwalten.de, map mail.aliases: can't bind to server on this domain
Sep 21 21:34:20 lichtscheidl postfix/local[12568]: 173B494398: to=<postmaster@server1.gregstar.at>, orig_to=<postmaster>, relay=local, delay=0, status=deferred (alias database unavailable)
Sep 21 21:34:20 lichtscheidl postfix/local[12568]: warning: no recipient in alias lookup result for postmaster
Sep 21 21:34:20 lichtscheidl postfix/local[12568]: 173B494398: to=<postmaster@server1.gregstar.at>, orig_to=<postmaster>, relay=local, delay=0, status=deferred (alias database unavailable)
Soll das etwa heißen, dass ich hierverwalten.de als mydomain eintragen soll?
rootsvr
Posts: 538 Joined: 2005-09-02 11:12
Post
by rootsvr » 2006-09-21 21:44
unknown smtpd restriction: permit_mydestination
Waa ist permit_mydestination?
Hab ich bisher noch nicht gehört..
ich denke
http://www.postfix.org ist nen guter Ansatz, oder?
Wie hast Du konfiguriert, hast Du ein Howto genommen, wenn ja welches?
was sagt postconf -n (und was im vergleich ist in deiner main.cf drinnen?)
gregstar
Posts: 4 Joined: 2006-09-20 10:40
Post
by gregstar » 2006-09-25 13:10
Ahh, das war der Fehler. Ich habe unnötigerweise permit_mydestination hinzugefügt. jetzt funktionierts =)
Danke für die Hilfe