HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   cannot receive emails after made website online (http://www.howtoforge.com/forums/showthread.php?t=18330)

llamy 12th December 2007 01:45

cannot receive emails after made website online
 
Hi,

I have made my website online with godaddy following this howto by Falko http://www.howtoforge.com/ispconfig_dns_godaddy, and everything works fine,i'm able to access my website from anywhere, it is truely available online. But i cannot receive email from my yahoo! account for example, although i have one user as an administrator of the website with an email address set in IspConfig.

So basically :

1)when i go on mail.yahoo.com and i send an email to website_admin_login_in_ISPConfig@mywebsite.com i do not receive any error from yahoo! but after login with webmail on the ISPConfig server using that website admin account i have noting inbox.

2)when i go on mail.yahoo.com and i send an email to the website administrator user email address as set in ISPConfig which is by the way info@mywebsite.com, i do not receive any error from yahoo! but after login with webmail on the ISPConfig server using that website admin account i have noting inbox still.

Have i done some thing wrong there?


thanks for your answers.

till 12th December 2007 09:37

Please check your mail logfile for errors.

llamy 12th December 2007 16:21

Hi,

there is no log mail directory in /var/www/ and also in /var/www/webxx , in /var/www/webxx/log i have an error.log file with nothing relevant to this matter, the only error showing in this file is :

[Wed Dec 12 09:26:59 2007] [error] [client 2xx.1xx.1xx.1xx] File does not exist: /var/www/webxx/web/css, referer: http://www.mywebsite.com/

i wonder if i should not add my mailserver in the godaddy Host Summary which is accordind to the howto by falko : mail.mywebsite.com

thanks.

llamy 12th December 2007 20:51

I have followed all the instruction in this link http://www.howtoforge.com/forums/showthread.php?t=2

i was unable to do : postmap /etc/postfix/virtusertable i got instead :
bash: postmap: command not found

so i restarted postfix with /etc/init.d/postfix restart that was ok and then restared ispconfig with /etc/init.d/ispconfig_server restart that was ok too.

now this is what i have :
sample_user is a user in the ISPconfig system who has the following email address : info@mydomain.com

now i'm able to receive emails sent to sample_user@mydomain.com but when i send emails to info@mydomain.com from webmail i have the following in the inbox :

From: Mail Delivery System
To: sample_user@mydomain.com
Subject: Undelivered Mail Returned to Sender

I think the problem is with postmap which is not working, any clue?

Thanks.

Hans 13th December 2007 06:59

If you are using the Maildir format, please enable it within ISPConfig under Management > Server > Settings > Email

llamy 14th December 2007 04:20

Thanks Hans,

MailDir was already enabled under Management > Server > Settings > Email

while going there to verify i noticed that there is a /var/log/maillog file, i will post the output of the file here.

But i still do not understand why i cannot postmap on my FC6 Box, i get this instead > bash: postmap: command not found

I still do not know where is the problem here.

Thanks.

till 14th December 2007 08:54

You can try to find the full path of the postmap command with:

locate postmap

llamy 14th December 2007 17:11

Ok I know where the problem is now but cannot solved it.

First thanks Till, the command locate postmap returns /usr/sbin/postmap then i was able to run it, but it did not solved the problem.

while i try to send a mail to info@mydomain.com with webmail i received : Mail Delivery System Undelivered Mail Returned t..., and the content of it is the following :

The mail system



<postmaster@host.myispconfig_domain.com> (expanded from <info@mydomain.com>):

Host or domain name not found. Name service error for

name=myispconfig_domain.com type=A: Host not found



--1DBF7ED0002.1197645187/monster.tagatbolivia.com

Content-Description: Delivery report

Content-Type: message/delivery-status



Reporting-MTA: dns; monster.tagatbolivia.com

X-Postfix-Queue-ID: 1DBF7ED0002

X-Postfix-Sender: rfc822; sample_user@mydomain.com

Arrival-Date: Fri, 14 Dec 2007 11:13:07 -0400 (BOT)



Final-Recipient: rfc822; postmaster@host.myispconfig_domain.com

Original-Recipient: rfc822;info@mydomain.com

Action: failed

Status: 5.4.4

Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error

for name=host.myispconfig_domain.com type=A: Host not found



So if i understand the mail system cannot resolved the ispconfig domain name(myispconfig_domain.com) which is different from the one i register my website(mydomain.com), this is normal since i did not register on godaddy the ISPConfig domain name, hoping for future customers to reach it by his IP address.

Now as it said in the postfix main.cf file :

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
mydomain = mydomain.com
#mydomain = domain.tld


So as you can see i have change the mydomain value to the corresponding domain vale of my website, but it does not change nothing because postfix always use the result of gethostname() to fix the hostname and the domain values.

So now the question is how to force postfix to use my website domain instead of the ispconfig server domain is there any postfix command to set that, because for security reasons i prefer to have a different domain name of ISPconfig server and my website although they both reside on the same FC6 Box.

Thanks.

llamy 14th December 2007 17:16

As you can see i managed to put the ispconfig_domain name = monster.tagatbolivia.com :) , i noticed it when i read back myself after posting also i forgot to say that after any changes to /etc/postfix/main.cf i always restart it with /etc/init.d/postfix restart.

Any comment is very appreciated.

falko 15th December 2007 15:39

Quote:

Originally Posted by llamy
So now the question is how to force postfix to use my website domain instead of the ispconfig server domain is there any postfix command to set that, because for security reasons i prefer to have a different domain name of ISPconfig server and my website although they both reside on the same FC6 Box.

Thanks.

Add
Code:

myorigin = mydomain.com
to /etc/postfix/main.cf and restart Postfix.


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

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