Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probleme mit lokalem Mailserver
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
smog_at
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 215

PostPosted: Wed Feb 23, 2005 7:51 am    Post subject: Probleme mit lokalem Mailserver Reply with quote

So, wieder mal das leidige Thema,

jedoch habe ich im Forum gesucht und nichts gefunden, das mir bei diesem Problem weiterhelfen könnte.
Nun zum Problem, ich habe einen Mailserver mit Postfix, MySQL Courier-IMAP, cyrus-sasl, SpamAssassin, Amavisd-new
Und ja ich habe auch eine Offene IP falls jemand fragt, also ein Servertarif, der es mir erlaubt eine Mailserver zu betreiben.

Nun mein Problem ist jetzt folgendes, wenn ich mails verschicke, bekomme ich immer folgendes:
Code:

Feb 23 08:38:01 plserver postfix/smtpd[4844]: input attribute value: CF7D4254ACC
Feb 23 08:38:01 plserver postfix/smtpd[4844]: CF7D4254ACC: client=localhost.localdomain[127.0.0.1]
Feb 23 08:38:01 plserver postfix/cleanup[4830]: CF7D4254ACC: message-id=<26366.212.67.237.212.1109144248.squirrel@212.67.237.212>
Feb 23 08:38:01 plserver postfix/qmgr[4792]: CF7D4254ACC: from=<MY_MAILADDRESS>, size=27271, nrcpt=1 (queue active)
Feb 23 08:38:01 plserver postfix/smtpd[4844]: > localhost.localdomain[127.0.0.1]: 250 Ok: queued as CF7D4254ACC
Feb 23 08:38:01 plserver postfix/smtp[4833]: < 127.0.0.1[127.0.0.1]: 250 2.6.0 Ok, id=01163-04, from MTA: 250 Ok: queued as CF7D4254ACC
Feb 23 08:38:01 plserver postfix/smtp[4833]: D1CA9254A74: to=<MAIL_GOES_TO>, relay=127.0.0.1[127.0.0.1], delay=33, status=sent (250 2.6.0 Ok, id=01163-04, from MTA: 250 Ok: queued as CF7D4254ACC)
Feb 23 08:41:55 plserver postfix/smtp[4846]: CF7D4254ACC: to=<MAIL_GOES_TO>, relay=PROVIDER_MAILSERVER[PROVIDER_MAILSERVER_IP], delay=234, status=sent (250 2.0.0 j1N7c7K0001742060 Message accepted for delivery)
Feb 23 08:41:55 plserver postfix/qmgr[4792]: CF7D4254ACC: removed


So mein Problem ist nun, das er aus irgendeinem Grund den Relay auf meinen Provider setzt, und nicht auf meinen Rechner. Wie und wo kann ich im das Umstellen, den ich möchte das mein Mailserver versendet, und nicht nur an den nächsten weiterreicht.

hier mal die /etc/postfix/main.cf:
Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = cyberfreaks.org
mailbox_command = /usr/bin/procmail
mailbox_transport = local
local_transport = local
mydestination = $myhostname, localhost.$mydomain $mydomain
myorigin = $myhostname
inet_interfaces = all
unknown_local_recipient_reject_code = 450
mynetworks = 192.168.1.0/24, 127.0.0.0/8

# That sets the upper limit at ~ 40MB for one queue element
message_size_limit = 40960000

sender_canonical_maps = hash:/etc/postfix/sender_canonical
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical

# Anti Virus
content_filter = smtp-amavis:[127.0.0.1]:10024

home_mailbox = .maildir/
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 2
debug_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 = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.16-r1/sample
readme_directory = /usr/share/doc/postfix-2.0.16-r1/readme

# SASL - Gentoo Mail HowTo
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
#smtpd_sasl_local_domain = $myhostname
smtpd_sasl_local_domain =

smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        permit_mynetworks,
        reject_unauth_destination

smtpd_use_tls = yes
#smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

# VIRTUAL - Gentoo Mail HowTo
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf

local_transport = local
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname

virtual_transport = virtual
virtual_mailbox_domains =
        virt-bar.com,
        $other-virtual-domain.com,
        code-warrior.org
        cyberfreaks.org
        coding-maniac.com

virtual_minimum_uid = 1000
#virtual_gid_maps = static:$vmail-gid
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
#virtual_uid_maps = static:$vmail-uid
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
virtual_mailbox_base = /
#virtual_mailbox_limit =


Ich hoffe mir kann jemand helfen
Vielen Dank im Voraus

Lg smog_at
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Wed Feb 23, 2005 10:49 am    Post subject: Reply with quote

Um über ein Relay zu versenden müsste deine main.cf eigentlich den Eintrag Relay_host xx.xx.xx.xx beinhalten. Ist aber nicht vorhanden. Du hast das Relay ja schließlich konfiguriert und die IP des Relay Server eingetragen. Wie bist du vorgegangen?


Gruß
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Wed Feb 23, 2005 4:48 pm    Post subject: Reply with quote

Laut deiner Konfiguration ist
Code:
mydestination = $myhostname, localhost.$mydomain $mydomain

Hier fehlt die Deklaration von mydomain = localdomain, sprich dein Server fühlt sich für Mail an localhost.localdomain nicht verantwortlich.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum