//]]>-->

Postfix - får ikke motta e-post

Har du noe lurt å dele med oss? NB. Dette er ikke et support forum.

Postfix - får ikke motta e-post

Innleggav keia » tir 13.04.2010 14:47

Hei!

Jeg har et ekkelt postfix-problem, og må nå krype til korset og spørr dere om hjelp.
Jeg løser et problem, og et annet oppstår.
Det går fint å sende e-post, men å motta? Nei, det skjer bare ikke.

Jeg er relativt sikker på at feilen/mangelen ligger i main.cf eller master.cf under
/etc/postfix/

Centos 5.4
Postfix, squirrelMail etc.

var/log/maillog
==========================================
Kode: Merk alt
Apr 13 12:03:43 mills imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 13 12:03:43 mills imapd: LOGIN, user=hamarvik@domain1.no, ip=[::ffff:127.0.0.1], port=[47178], protocol=IMAP
Apr 13 12:03:43 mills imapd: LOGOUT, user=hamarvik@domain1.no, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0
Apr 13 12:04:02 mills postfix/postfix-script: stopping the Postfix mail system
Apr 13 12:04:02 mills postfix/master[12151]: terminating on signal 15
Apr 13 12:04:02 mills postfix/postfix-script: starting the Postfix mail system
Apr 13 12:04:02 mills postfix/master[12299]: daemon started -- version 2.3.3, configuration /etc/postfix
Apr 13 12:04:13 mills postfix/smtpd[12305]: connect from blu0-omc3-s27.blu0.hotmail.com[65.55.116.102]
Apr 13 12:04:14 mills postfix/smtpd[12305]: 3118B18FBB0: client=blu0-omc3-s27.blu0.hotmail.com[65.55.116.102]
Apr 13 12:04:14 mills postfix/cleanup[12316]: 3118B18FBB0: message-id=<BLU138-W51D836E7FD5329864D01DEA110@phx.gbl>
Apr 13 12:04:14 mills postfix/qmgr[12302]: 3118B18FBB0: from=<name1_hamarvik@hotmail.com>, size=2129, nrcpt=1 (queue active)
[b]Apr 13 12:04:14 mills postfix/smtp[12317]: 3118B18FBB0: to=<hamarvik@domain1.no>, relay=none, delay=0.4, delays=0.39/0.01/0/0, dsn=5.4.6, status=bounced (mail for mills loops back to myself)[/b]
Apr 13 12:04:14 mills postfix/cleanup[12316]: 6CF8518FBB2: message-id=<20100413120414.6CF8518FBB2@mills>
Apr 13 12:04:14 mills postfix/bounce[12318]: 3118B18FBB0: sender non-delivery notification: 6CF8518FBB2
Apr 13 12:04:14 mills postfix/qmgr[12302]: 6CF8518FBB2: from=<>, size=3812, nrcpt=1 (queue active)
Apr 13 12:04:14 mills postfix/qmgr[12302]: 3118B18FBB0: removed
Apr 13 12:04:14 mills postfix/smtpd[12305]: disconnect from blu0-omc3-s27.blu0.hotmail.com[65.55.116.102]
Apr 13 12:04:15 mills postfix/smtp[12317]: 6CF8518FBB2: to=<name1_hamarvik@hotmail.com>, relay=mx4.hotmail.com[65.54.188.94]:25, delay=1.2, delays=0.01/0/0.54/0.63, dsn=2.0.0, status=sent (250  <20100413120414.6CF8518FBB2@mills> Queued mail for delivery)




Postconf -n
==========================================
Kode: Merk alt
[root@mills postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 0
mime_header_checks = regexp:/etc/postfix/mime_header_checks
mydestination = localhost.$mydomain, localhost
myhostname = mills
mynetworks = 192.143.0.0/20,  127.0.0.0/8 [::1]/128
mynetworks_style = subnet
myorigin = mills
nested_header_checks = regexp:/etc/postfix/nested_header_checks
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
receive_override_options = no_address_mappings
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_host_lookup = dns, native
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
unknown_local_recipient_reject_code = 450
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_transport = maildrop
virtual_uid_maps = static:5000



E-mail fra min server til hotmail.
==========================================

Subject:
Undelivered Mail Returned to Sender

E-mail
This is the mail system at host mills.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<hamarvik@domain1.no>: mail for mills loops back to myself



MX
==========================================
Kode: Merk alt
[root@mills postfix]# dig mx domain1.no

(...)
;; QUESTION SECTION:
;domain1.no.                    IN      MX

;; ANSWER SECTION:
domain1.no.             86400   IN      MX      10 mail.domain1.no.





På forhånd takk
Ikke nøl med å si fra om noe informasjon mangler fra meg.

--
K
medlem i 114 måneder
 

Re: Postfix - får ikke motta e-post

Innleggav ak » tir 13.04.2010 19:34

debug_peer_level = 3 , eller høyere. Du kan også bruke epostklienten din direkte, istedet for å sende via Hotmail. Da får du som regel mye klarere beskjed, hvis du får "relay denied" så vet du at din server ikke har fått med seg at den er leveransepunkt for dette domenet.

Videre vil jeg anbefale deg å få dette på beina uten virtual hosts først.
mydestination = domain1.no

myorigin = mills
bør være fqdn, hvis jeg ikke husker feil, men dette er viktigere for når du sender, og det fungerer jo noenlunde.

Administrator
Brukerens avatar
medlem i 182 måneder
 

Re: Postfix - får ikke motta e-post

Innleggav keia » tir 13.04.2010 21:53

Takk for svar.

Da har jeg forsøkt. Helt lik feilmelding. :(
medlem i 114 måneder
 


Returner til Tips og triks / Favoritter



Hvem er i Forumene

Registrerte brukere: Google [Bot]