View Single Post
  #9  
Old 27th December 2006, 10:34
james@thereidsonline.com james@thereidsonline.com is offline
Junior Member
 
Join Date: Nov 2006
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Tycho,

Thanks for your quick reply - Squirellmail is now working correctly!

However....

I now have a new problem.

I don't seem to be able to receive emails correctly.

When Postfix receives an email, it says (maillog):
Dec 27 09:12:25 uksys01 postfix/smtpd[20719]: connect from omta04ps.mx.bigpond.com[144.140.83.156]
Dec 27 09:12:25 uksys01 postfix/smtpd[20719]: 61C571E90726: client=omta04ps.mx.bigpond.com[144.140.83.156]
Dec 27 09:12:25 uksys01 postfix/cleanup[20723]: 61C571E90726: message-id=<003301c7293a$e78f5200$6665a8c0@laptop01>
Dec 27 09:12:25 uksys01 postfix/qmgr[7939]: 61C571E90726: from=<jean@thereidsonline.com>, size=2556, nrcpt=1 (queue active)
Dec 27 09:12:25 uksys01 postfix/smtpd[20719]: disconnect from omta04ps.mx.bigpond.com[144.140.83.156]
Dec 27 09:12:26 uksys01 postfix/smtp[20724]: 61C571E90726: to=<reidware.net_james@mail01.uk.reidware.net>, orig_to=<james@reidware.net>, relay=192.168.201.40[192.168.201.40], delay=1, status=sent (250 Ok: queued as 0C16FA5624)
Dec 27 09:12:26 uksys01 postfix/qmgr[7939]: 61C571E90726: removed
From this I interpret that an email was successfully received from the Internet, and that Postfix *thinks* that it has been deposited into the appropriate mailbox correctly.

However, the email never reaches the mailbox.

I'm trying to use Maildir, but I think I might have accidently started to use something else (I think the Courier IMAP module that I installed possibly also included a Maildrop module too)

My main.cf looks like:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail01.uk.reidware.net
inet_interfaces = all
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.101.0/24, 192.168.201.0/24, 192.168.100.0/24, 127.0.0.0/8
relayhost = [192.168.201.40]
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
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.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.8/samples
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
My Master.cf looks like:
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 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/local/bin/maildrop -d ${recipient}

# used to be --> flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
Can you give me some pointers on what needs to be fixed here to get things back to normal?

Thanks!
James.
Reply With Quote