Postfix+Procmail+Fetchmail+Courier IMAP

Pagina: 1
Acties:
  • 707 views sinds 30-01-2008
  • Reageer

  • Pieter.txt
  • Registratie: September 2002
  • Laatst online: 14-02 15:38
Ik probeer een mailserver op te zetten onder Ubuntu.
Nu lukt bijna, alles behalve het ontvangen van mail. Verzenden gaat wel goed.
Ik heb echter geen idee wat de oorzaak is. Overigens heb ik voor het opzetten van een en ander gebruik gemaakt van de instructies op de volgende site: www.tomvergote.be

Hieronder vind je de foutmelding waar het allemaal om gaat.

Nov 7 17:08:56 localhost fetchmail[6399]: awakened at Sun 07 Nov 2004 05:08:56 PM CET
Nov 7 17:09:02 localhost fetchmail[6399]: 1 message for <USERNAME> at pop3.zonnet.nl (1445 octets).
Nov 7 17:09:02 localhost fetchmail[6399]: reading message <USERNAME>@pop3.zonnet.nl:1 of 1 (1445 octets)
Nov 7 17:09:02 localhost postfix/smtpd[6655]: connect from localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost postfix/smtpd[6655]: 22A759472D: client=localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost postfix/cleanup[6658]: 22A759472D: message-id=<418E4808.403@zonnet.nl>
Nov 7 17:09:03 localhost fetchmail[6399]: flushed
Nov 7 17:09:03 localhost postfix/qmgr[6615]: 22A759472D: from=<<USERNAME>@zonnet.nl>, size=1753, nrcpt=1 (queue active)
Nov 7 17:09:03 localhost postfix/smtpd[6655]: disconnect from localhost.localdomain[127.0.0.1]
Nov 7 17:09:03 localhost fetchmail[6399]: sleeping at Sun 07 Nov 2004 05:09:03 PM CET
Nov 7 17:09:43 localhost postfix/smtp[6659]: 22A759472D: to=<<USERNAME>@localhost>, relay=none, delay=40, status=deferred (Host or domain name not found. Name service error for name=smtp.zonnet.nl type=MX: Host not found, try again)

Als ik "postconf -n" doe, is het resultaat:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail -a $DOMAIN
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, $mydomain
myhostname = localhost.localdomain
mynetworks = 127.0.0.0/8, 192.168.1.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = smtp.zonnet.nl
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)

Inhoud /etc/hosts:
127.0.0.1 localhost.localdomain localhost Gandalf

Inhoud resolv.conf:
nameserver 192.168.1.1
nameserver 192.168.1.1

Inhoud master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
127.0.0.1:smtp inet n - - - - smtpd
#::1: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

# 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


Resultaat nslookup localhost:
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
Name: localhost
Address: 127.0.0.1


Ik heb geprobeerd in /etc/postfix/main.cf de waarde voor relayhost te veranderen in [smtp.zonnet.nl]. Dit verander de melding wel, maar zorgt er alleen maar voor dat de ontvanger direct het mailtje terugkrijgt:
Nov 7 17:25:05 localhost postfix/smtp[6814]: CD29894736: to=<irene@localhost>, relay=smtp.zonnet.nl[62.58.50.46], delay=43, status=sent (250 ok 1099844733 qp 12683)

O'Toole's Commentary on Murphy's Law: Murphy was an optimist.


  • DAzN
  • Registratie: April 2000
  • Niet online
Mijn eerste gedachte is: doet je DNS het wel? Wat gebeurt er als je - al dan niet tijdelijk - de DNS gebruikt van je provider?

  • Pieter.txt
  • Registratie: September 2002
  • Laatst online: 14-02 15:38
Hier komt vast een hele stomme opmerking, maar ik zal hem toch maar maken:
voor een mailserver zoals deze (die in weze de mail direct krijgt aangereikt door fetchmail en direct bij gebruikers op hetzelfde systeem bezorgt) heb je toch geen DNS nodig?

O'Toole's Commentary on Murphy's Law: Murphy was an optimist.


  • Eric Oud Ammerveld
  • Registratie: December 2000
  • Laatst online: 05-07-2024

Eric Oud Ammerveld

Arduino developing... :)

Haal die hele optie relayhost weg in main.cf ; ik vermoed dat het dan wel goed komt ;)

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.

[ Voor 69% gewijzigd door Eric Oud Ammerveld op 07-11-2004 23:03 ]

-=@@D=- Macbook Pro 16"


  • Pieter.txt
  • Registratie: September 2002
  • Laatst online: 14-02 15:38
als ik invul "relayhost=", dan wordt de getoonde foutmelding:
Nov 7 17:09:43 localhost postfix/smtp[6659]: 22A759472D: to=<irene@localhost>, relay=none, delay=40, status=deferred (Host or domain name not found. Name service error for name=local type=MX: Host not found, try again)

Let op het vetgedrukte woord en vergelijk dat met de oorspronkelijke melding.

O'Toole's Commentary on Murphy's Law: Murphy was an optimist.


Verwijderd

Als je nou eens localhost (dus zonder domein) bij mydestination zet dan zou het wel goed moeten zijn. Je kan ook in fetchamil dns resolving uitzetten, wil ook nog wel eens helpen.

  • Pieter.txt
  • Registratie: September 2002
  • Laatst online: 14-02 15:38
dat hielp inderdaad
bedankt voor alle hulp; het werkt nu als een zonnetje

O'Toole's Commentary on Murphy's Law: Murphy was an optimist.

Pagina: 1