View Full Version : cannot receive emails after made website online
llamy
12th December 2007, 02:45
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, 10:37
Please check your mail logfile for errors.
llamy
12th December 2007, 17: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, 21: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, 07:59
If you are using the Maildir format, please enable it within ISPConfig under Management > Server > Settings > Email
llamy
14th December 2007, 05: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, 09:54
You can try to find the full path of the postmap command with:
locate postmap
llamy
14th December 2007, 18: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, 18: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, 16:39
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
myorigin = mydomain.com to /etc/postfix/main.cf and restart Postfix.
llamy
15th December 2007, 20:33
Hi,
Still does not work, this is what i got from /var/log/maillog when i tried another time to send an email to info@mydomain.com.
Dec 15 14:05:37 myhost postfix/smtpd[4532]: connect from localhost.localdomain[127.0.0.1]
Dec 15 14:05:37 myhost postfix/smtpd[4532]: 53EA0428043: client=localhost.localdomain[127.0.0.1]
Dec 15 14:05:37 myhost postfix/cleanup[4535]: 53EA0428043: message-id=<20071215180537.53EA0428043@myshost.myispconfig_dom ain.com>
Dec 15 14:05:37 myhost postfix/smtpd[4532]: disconnect from localhost.localdomain[127.0.0.1]
Dec 15 14:05:37 myhost postfix/qmgr[4284]: 53EA0428043: from=<sample_user@mydomain.com>, size=794, nrcpt=1 (queue active)
Dec 15 14:05:37 myhost dovecot: pop3-login: Login: user=<sample_user>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Dec 15 14:05:37 myhost dovecot: POP3(sample_user): Disconnected: Logged out top=0/0, retr=0/0, del=0/16, size=33196
Dec 15 14:05:37 myhost postfix/local[4537]: 53EA0428043: to=<root@mydomain.com>, orig_to=<info@mydomain.com>, relay=local, delay=0.05, delays=0.02/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 15 14:05:37 myhost postfix/qmgr[4284]: 53EA0428043: removed
Dec 15 14:13:39 myhost dovecot: pop3-login: Login: user=<sample_user>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Dec 15 14:13:39 myhost dovecot: POP3(sample_user): Disconnected: Logged out top=16/14224, retr=0/0, del=0/16, size=33196
it looks like the mail endup in the root mail box but i do really understand all of it and how to get to the root mailbox as well.
Any comments please!
Thanks.
llamy
15th December 2007, 20:34
I mean,
t looks like the mail endup in the root mail box but i do not really understand all of it and how to get to the root mailbox as well.
Any comments please!
Thanks.
falko
16th December 2007, 14:56
What's in /etc/postfix/virtusertable and /etc/aliases?
llamy
17th December 2007, 14:29
Hi,
here is /etc/postfix/virtusertable
###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
sample_user@www.mydomain.com sample_user
info@www.mydomain.com sample_user
sample_user@mydomain.com sample_user
info@mydomain.com sample_user
here is /etc/aliases , first time i go there by the way.
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#
# Basic system aliases -- these MUST be present.
mailer-daemon: postmaster
postmaster: root
# General redirections for pseudo accounts.
bin: root
daemon: root
adm: root
lp: root
sync: root
shutdown: root
halt: root
mail: root
news: root
uucp: root
operator: root
games: root
gopher: root
ftp: root
nobody: root
radiusd: root
nut: root
dbus: root
vcsa: root
canna: root
wnn: root
rpm: root
nscd: root
pcap: root
apache: root
webalizer: root
dovecot: root
fax: root
quagga: root
radvd: root
pvm: root
amanda: root
privoxy: root
ident: root
named: root
xfs: root
gdm: root
mailnull: root
postgres: root
sshd: root
smmsp: root
postfix: root
netdump: root
ldap: root
squid: root
ntp: root
mysql: root
desktop: root
rpcuser: root
rpc: root
nfsnobody: root
ingres: root
system: root
toor: root
manager: root
dumper: root
abuse: root
newsadm: news
newsadmin: news
usenet: news
ftpadm: ftp
ftpadmin: ftp
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
webmaster: root
noc: root
security: root
hostmaster: root
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster
# trap decode to catch security attacks
decode: root
# Person who should get root's mail
#root: marc
Hope this may help.
Thanks.
llamy
17th December 2007, 14:48
Hi,
Guess what, this morning i'm able to receive mails from sample_user@mydomain.com and also from info@mydomain.com when those emails are sent from my ISPConfig server. But if i go on yahoo website and send mails to sample_user@mydomain.com i can receive but if i send to info@mydomain.com from yahoo website, i cannot receive still, i think there is a big progress though.
should i still keep myorigin = mydomain in /etc/postfix/main.cf ?
Thanks.
falko
18th December 2007, 17:56
What's the output of grep info /etc/passwd and grep info /etc/aliases?
llamy
18th December 2007, 22:14
Hi Falko,
Here are the outputs :
[user@myhost ~]$ grep info /etc/passwd
[user@myhost ~]$
[user@myhost ~]$ grep info /etc/aliases
info: postmaster
[user@myhost ~]$
So basically : grep info /etc/passwd returns nothing but grep info /etc/aliases returns > info: postmater
Hope it may help.
Thanks.
falko
19th December 2007, 19:00
That means that mails for info to to the postmaster. Please comment out the
info: postmaster
line in /etc/aliases and run
newaliases
/etc/init.d/postfix restart
llamy
20th December 2007, 02:33
Hi Falko,
I did what you told me:
newaliases
/etc/init.d/postfix restart
But still not working. I even created two users account and from ISPconfig Server everything is ok, but from yahoo.com when i send an email it is still not working.
Thank you Falko, hope to hear from you or other soon. Thanks.
till
20th December 2007, 10:05
Please post the errors or messages that you get now in the mail log when you sent a email to this account.
llamy
27th December 2007, 02:14
Sorry Till to answer you so late, well at this time i'm in the process of registering my website with another company than Godaddy. So most of the website features on their side do not function.
Thank you all for your help.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.