HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   Unable to recieve e-mails (http://www.howtoforge.com/forums/showthread.php?t=32663)

quentusrex 20th March 2009 19:39

Unable to recieve e-mails
 
Either I'm unable to receive e-mails, or they are not being placed in the proper folder.

What do you need to see to help figure this out?

quentusrex 20th March 2009 21:42

Here is my master.cf. I only added the port 587 part, and a bit in the delivery part. about vmail


cat /etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
587 inet n - - - - smtpd
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
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
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 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=R user=vmail argv=/usr/bin/maildrop -d vmail ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
#
# 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=bsmtp argv=/usr/lib/bsmtp/bsmtp -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}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}


amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1

falko 21st March 2009 21:01

What's in your mail log when you send an email to that server?

Does the MX record point to the correct server?

quentusrex 21st March 2009 21:07

Mar 21 13:03:13 virt3 postfix/smtpd[10900]: connect from wf-out-1314.google.com[209.85.200.171]
Mar 21 13:03:14 virt3 postfix/smtpd[10900]: 061BE128992: client=wf-out-1314.google.com[209.85.200.171]
Mar 21 13:03:14 virt3 postfix/cleanup[10904]: 061BE128992: message-id=<49C5481D.1030507@gmail.com>
Mar 21 13:03:14 virt3 postfix/qmgr[5316]: 061BE128992: from=<****@gmail.com>, size=2425, nrcpt=1 (queue active)
Mar 21 13:03:14 virt3 amavis[4494]: (04494-12) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 98) line 166, <GEN114> line 5.
Mar 21 13:03:14 virt3 postfix/smtpd[10909]: connect from localhost[127.0.0.1]
Mar 21 13:03:14 virt3 postfix/smtpd[10909]: EB4D91289A7: client=localhost[127.0.0.1]
Mar 21 13:03:14 virt3 postfix/cleanup[10904]: EB4D91289A7: message-id=<49C5481D.1030507@gmail.com>
Mar 21 13:03:14 virt3 postfix/smtpd[10909]: disconnect from localhost[127.0.0.1]
Mar 21 13:03:14 virt3 postfix/qmgr[5316]: EB4D91289A7: from=<*****@gmail.com>, size=2916, nrcpt=1 (queue active)
Mar 21 13:03:14 virt3 amavis[4494]: (04494-12) Passed CLEAN, [*.*.*.171] [*.*.*.21] <***@gmail.com> -> <webmaster@****.com>, Message-ID: <49C5481D.1030507@gmail.com>, mail_id: 9N+TcHNbv3qv, Hits: -0.001, size: 2425, queued_as: EB4D91289A7, dkim_id=@gmail.com,****@gmail.com, 896 ms
Mar 21 13:03:14 virt3 postfix/smtp[10905]: 061BE128992: to=<webmaster@*****.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1, delays=0.1/0.01/0.01/0.9, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04494-12, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as EB4D91289A7)
Mar 21 13:03:14 virt3 postfix/qmgr[5316]: 061BE128992: removed
Mar 21 13:03:15 virt3 postfix/pipe[10911]: EB4D91289A7: to=<webmaster@*****.com>, relay=maildrop, delay=0.1, delays=0.02/0.01/0/0.07, dsn=2.0.0, status=sent (delivered via maildrop service)
Mar 21 13:03:15 virt3 postfix/qmgr[5316]: EB4D91289A7: removed

falko 21st March 2009 21:11

Quote:

Mar 21 13:03:14 virt3 amavis[4494]: (04494-12) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 98) line 166, <GEN114> line 5.
There seems to be a problem with your MySQL server. Please make sure it is running.

quentusrex 21st March 2009 21:13

It is running. I am able to access it with phpmyadmin.

falko 22nd March 2009 15:05

Are there any MySQL errors in your syslog? What's the output of
Code:

netstat -tap
?

quentusrex 22nd March 2009 18:48

netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:10024 *:* LISTEN 4406/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 5307/master
tcp 0 0 localhost:mysql *:* LISTEN 4481/mysqld
tcp 0 0 *:submission *:* LISTEN 5307/master
tcp 0 0 localhost:spamd *:* LISTEN 4546/spamd.pid
tcp 0 0 *:http-alt *:* LISTEN 5435/apache2
tcp 0 0 *:www *:* LISTEN 5435/apache2
tcp 0 0 *:ftp *:* LISTEN 24618/pure-ftpd (SE
tcp 0 0 *:munin *:* LISTEN 5505/munin-node
tcp 0 0 ***.***:domain *:* LISTEN 5179/mydns
tcp 0 0 localhost:domain *:* LISTEN 5179/mydns
tcp 0 0 *:ssh *:* LISTEN 4380/sshd
tcp 0 0 *:smtp *:* LISTEN 5307/master
tcp 0 0 *:https *:* LISTEN 5435/apache2
tcp 0 288 ***.***:ssh ***.***:64907 ESTABLISHED 10871/sshd: pcpharm
tcp6 0 0 [::]:imaps [::]:* LISTEN 5115/couriertcpd
tcp6 0 0 [::]:pop3s [::]:* LISTEN 5169/couriertcpd
tcp6 0 0 [::]:pop3 [::]:* LISTEN 5138/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 5084/couriertcpd
tcp6 0 0 [::]:ftp [::]:* LISTEN 24618/pure-ftpd (SE
tcp6 0 0 ip6-localhost:domain [::]:* LISTEN 5179/mydns
tcp6 0 0 [::]:ssh [::]:* LISTEN 4380/sshd
tcp6 0 0 ***.***:imap2 ***.***:59825 ESTABLISHED 27683/imapd
tcp6 0 0 ***.***r:imap2 ***.***:62314 ESTABLISHED 16745/couriertls
tcp6 0 0 ***.***:imap2 ***.***:65295 ESTABLISHED 16282/couriertls




I've changed my domain name to ***.***


I also don't have anything mysql related in the syslog. And there are no mysql.log or mysql.err logs. the files are there, but nothing is inside them.

till 22nd March 2009 21:58

Which Linux distribution do you use?

quentusrex 22nd March 2009 21:59

Ubuntu 8.10


All times are GMT +2. The time now is 04:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.