HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Cannot receive emails (http://www.howtoforge.com/forums/showthread.php?t=6573)

gorolla 1st September 2006 05:10

Cannot receive emails
 
Hi,

I have a problem with my email using ISPConfig, I cannot receive emails at all but I can send using Outlook Express. However if I use webmail - squirrelmail - the email I receive will be myusername@example.com. The following is my mail log;

Aug 31 12:42:46 linux postfix/sendmail[5538]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postalias[5538]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5554]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5557]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5560]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5563]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5566]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5569]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5572]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:46 linux postfix/postmap[5575]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Aug 31 12:42:47 linux postfix[5579]: warning: My hostname server1 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf

Can some let me know how to get this up and running. Thank you

gorolla

Rocky 1st September 2006 05:56

Please post the content of /etc/postfix/main.cf. Also, what distro are you using? What host and domain name did you use when you did the intial setup?

gorolla 4th September 2006 07:23

Thank you for your fast reply, my main.cf file is as followed

http://www.ibtaus.info/temp/main.cf

Thank you for your great help.

gorolla

gorolla 4th September 2006 08:38

The following is my log file;

Sep 4 16:36:05 server1 postfix/smtpd[8523]: connect from localhost[127.0.0.1]
Sep 4 16:36:05 server1 postfix/smtpd[8523]: C0826A0049: client=localhost[127.0.0.1]
Sep 4 16:36:05 server1 postfix/cleanup[8525]: C0826A0049: message-id=<4921.192.168.1.1.1157351765.squirrel@www.ibtau s.info>
Sep 4 16:36:05 server1 postfix/qmgr[5281]: C0826A0049: from=<jeff@example.com>, size=644, nrcpt=1 (queue active)
Sep 4 16:36:05 server1 postfix/smtpd[8523]: disconnect from localhost[127.0.0.1]
Sep 4 16:36:05 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:05 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:05 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
Sep 4 16:36:06 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:06 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:06 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
Sep 4 16:36:06 server1 postfix/smtp[8527]: C0826A0049: to=<jeff@www.ibtaus.com>, orig_to=<jeff@ibtaus.info>, relay=smtp.secureserver.net[64.202.166.12], delay=1, status=bounced (host smtp.secureserver.net[64.202.166.12] said: 553 sorry, relaying denied from your location [203.173.40.87] (#5.7.1) (in reply to RCPT TO command))
Sep 4 16:36:06 server1 postfix/cleanup[8525]: EA5F0A004B: message-id=<20060904063606.EA5F0A004B@www.ibtaus.com>
Sep 4 16:36:06 server1 postfix/qmgr[5281]: C0826A0049: removed
Sep 4 16:36:06 server1 postfix/qmgr[5281]: EA5F0A004B: from=<>, size=2670, nrcpt=1 (queue active)
Sep 4 16:36:36 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:36 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:36 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
Sep 4 16:36:36 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:36 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:37 server1 postfix/smtp[8527]: connect to example.com[192.0.34.166]: Connection timed out (port 25)
Sep 4 16:36:37 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=1
Sep 4 16:36:37 server1 postfix/smtp[8527]: EA5F0A004B: to=<jeff@example.com>, relay=none, delay=31, status=deferred (connect to example.com[192.0.34.166]: Connection timed out)
Sep 4 16:36:37 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:37 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:37 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
Sep 4 16:36:37 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:37 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:38 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=1
Sep 4 16:36:38 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:38 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:38 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
Sep 4 16:36:38 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 4 16:36:38 server1 imapd: LOGIN, user=jeff, ip=[::ffff:127.0.0.1], protocol=IMAP
Sep 4 16:36:38 server1 imapd: LOGOUT, user=jeff, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0

thanks

gorolla 4th September 2006 08:39

Also the result when run netstat -tap

server1:/var/lib/named # 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:mysql *:* LISTEN 3098/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 4313/portmap
tcp 0 0 localhost:cryptoadmin *:* LISTEN 4688/fam
tcp 0 0 *:hosts2-ns *:* LISTEN 4381/ispconfig_http
tcp 0 0 192.168.1.3:domain *:* LISTEN 8341/named
tcp 0 0 server1.ibtaus.c:domain *:* LISTEN 8341/named
tcp 0 0 localhost:domain *:* LISTEN 8341/named
tcp 0 0 *:ftp *:* LISTEN 5309/proftpd: (acce
tcp 0 0 localhost:953 *:* LISTEN 8341/named
tcp 0 0 *:smtp *:* LISTEN 5259/master
tcp 0 0 *:pop3 *:* LISTEN 4476/couriertcpd
tcp 0 0 *:imap *:* LISTEN 4454/couriertcpd
tcp 0 0 *:www-http *:* LISTEN 5151/httpd2-prefork
tcp 0 0 *:ssh *:* LISTEN 4519/sshd
tcp 0 0 localhost:953 *:* LISTEN 8341/named
tcp 0 0 *:smtp *:* LISTEN 5259/master
tcp 0 0 *:https *:* LISTEN 5151/httpd2-prefork
tcp 0 696 server1.ibtaus.com:ssh 192.168.1.65%10738:4606 ESTABLISHED 6456/0

Thanks

till 4th September 2006 11:13

Please replace the line:

myhostname = server1.$mydomain

with:

myhostname = server1.ibtaus.info

Make sure that server1.ibtaus.info exists in DNS and restart postfix after you changed the my.cnf file.

gorolla 5th September 2006 02:25

Hi till,

Thank you for your reply, but i am a little confused here. Which file should I been editing my main.cf or my.cnf. I thought my.cnf is for mysql server.

Also how do I check if server1.ibtaus.info is in the DNS? Sorry to be a hazzard.

Thank you

torusturtle 5th September 2006 08:47

Quote:

Originally Posted by gorolla
Hi till,

Thank you for your reply, but i am a little confused here. Which file should I been editing my main.cf or my.cnf. I thought my.cnf is for mysql server.

Also how do I check if server1.ibtaus.info is in the DNS? Sorry to be a hazzard.

Thank you

I'm sure till ment main.cf.
I think you should have a A record pointing to your domain for example:

server1.ibtaus.info A yourIPhere

torusturtle 5th September 2006 08:56

Just checked your DNS entry here
http://www.dnsreport.com/tools/dnsre...in=ibtaus.info

it looks like you have 2 MX records and the first one looks strange as you configured smtp.ibtaus.info as a CNAME.

I recommend to change them either to
Code:

ibtaus.info MX 10 yourIPhere
or
Code:

server1.ibtaus.info MX 10 yourIPhere
Try to fix all the red marked FAIL fields and you should be up an running.


For an example look here:
http://www.dnsreport.com/tools/dnsre...in=kynamoo.com

falko 5th September 2006 18:25

Quote:

Originally Posted by torusturtle
I'm sure till ment main.cf.

Yes, it's /etc/postfix/main.cf.


All times are GMT +2. The time now is 14:00.

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