Current time: 11-25-2024, 11:51 AM Hello There, Guest! (LoginRegister)


Post Reply 
cant send email from website
Author Message
hoangnam8484 Offline
Junior Member
*

Posts: 13
Joined: Sep 2009
Reputation: 0
Post: #1
cant send email from website
I cant send email from website, i watch file log:
/var/log/mail.log
Jan 21 10:42:00 webserver1 postfix/qmgr[30673]: 7FBC0DB826B: removedJan 21 10:42:28 webserver1 pop3d: Connection, ip=[::ffff:118.69.225.254]Jan 21 10:42:28 webserver1 pop3d: Disconnected, ip=[::ffff:118.69.225.254]Jan 21 10:42:28 webserver1 postfix/smtpd[29314]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jan 21 10:42:28 webserver1 imapd: Connection, ip=[::ffff:118.69.225.254]Jan 21 10:42:28 webserver1 imapd: Disconnected, ip=[::ffff:118.69.225.254], time=0Jan 21 10:42:28 webserver1 postfix/smtpd[29314]: connect from webserver1.domain.com.vn[118.69.225.254]Jan 21 10:42:28 webserver1 postfix/smtpd[29314]: lost connection after CONNECT from webserver1.domain.com.vn[118.69.225.254]
Jan 21 10:42:28 webserver1 postfix/smtpd[29314]: disconnect from webserver1.domain.com.vn[118.69.225.254]Jan 21 10:42:28 webserver1 postfix/smtpd[29316]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jan 21 10:42:28 webserver1 postfix/smtpd[29316]: warning: No server certs available. TLS won't be enabled
Jan 21 10:42:28 webserver1 postfix/smtpd[29316]: connect from webserver1.domain.com.vn[118.69.225.254]Jan 21 10:42:28 webserver1 postfix/smtpd[29316]: warning: Wrapper-mode request dropped from webserver1.domain.com.vn[118.69.225.254] for service smtps. TLS context initialization fa
iled. For details see earlier warnings in your logs.
-----------------------
Jan 21 10:56:21 webserver1 postfix/qmgr[30673]: D0203DB8267: removedJan 21 10:56:41 webserver1 postfix/pickup[29445]: 0DBF6DB8267: uid=2000 from=<webmaster@ssg.com.vn>Jan 21 10:56:41 webserver1 postfix/cleanup[29457]: 0DBF6DB8267: message-id=<20100121035641.0DBF6DB8267@webserer1>Jan 21 10:56:41 webserver1 postfix/qmgr[30673]: 0DBF6DB8267: from=<webmaster@domain.com.vn>, size=759, nrcpt=1 (queue active)Jan 21 10:56:41 webserver1 postfix/virtual[29459]: 0DBF6DB8267: to=<admin@domain.com.vn>, relay=virtual, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to
maildir)

help me!!!
01-21-2010 05:07 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: cant send email from website
1. Give format to your messages when posting. Specifically, use the <code>...</code> (replacing "<" by "[" and ">" by "]") so they are actually readable, line breaks don't get messed up, etc...

2. Execute the command "newaliases" as root to get rid of these warnings:
Code:
Jan 21 10:42:28 webserver1 postfix/smtpd[29314]: warning: database /etc/aliases.db is older than source file /etc/aliases

3. Looking at these lines:
Code:
Jan 21 10:56:41 webserver1 postfix/pickup[29445]: 0DBF6DB8267: uid=2000 from=<webmaster@ssg.com.vn>
Jan 21 10:56:41 webserver1 postfix/cleanup[29457]: 0DBF6DB8267: message-id=<20100121035641.0DBF6DB8267@webserer1>Jan 21 10:56:41 webserver1 postfix/qmgr[30673]: 0DBF6DB8267: from=<webmaster@domain.com.vn>, size=759, nrcpt=1 (queue active)
Jan 21 10:56:41 webserver1 postfix/virtual[29459]: 0DBF6DB8267: to=<admin@domain.com.vn>, relay=virtual, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
They state that the control panel gui (a website) is actually sending e-mails to you. Specifically, it has sent an e-mail to "admin@domain.com.vn" which has been stored in this account on the server. You can try logging in as "admin@domain.com.vn" through the webmail and it should be there.

Where's the problem?
01-21-2010 05:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hoangnam8484 Offline
Junior Member
*

Posts: 13
Joined: Sep 2009
Reputation: 0
Post: #3
RE: cant send email from website
ok, i'm login in webmail so show error:
ERROR
Error opening ../data/default_pref
Could not create initial preference file!
../data/ should be writable by user vu2000
Please contact your system administrator and report this error.

help me!!!
01-21-2010 06:31 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: cant send email from website
execute "/var/www/ispcp/engine/setup/set-gui-permissions.sh"
01-21-2010 06:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hoangnam8484 Offline
Junior Member
*

Posts: 13
Joined: Sep 2009
Reputation: 0
Post: #5
RE: cant send email from website
ok, but the problem resolved complete!
But, My child issues:
file log:
Jan 21 15:57:08 webserver1 postfix/virtual[6306]: 83BD9DB8340: to=<user@mydomain.com.vn>, orig_to=<webmaster@mydomain.com.vn>, relay=virtual, delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "user@mydomain.com.vn")

1.I have a server mail, used domain: mydomain.com
2. webserver, i have hosting domain is mydomain.com
when i'm send mail from my website to user@mydomain.com, show error unknown user. i want send to my mailserver, dont send to webserver.
So I have to configure like?

Thanks you?
01-21-2010 07:21 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: cant send email from website
Your postfix log must show warnings like the following:
Code:
warning: do not list domain mydomain.com.vn in BOTH mydestination and virtual_alias_domains

This is because you have either "mydomain" or "myhostname" set to "mydomain.com.vn" in /etc/postfix/main.cf. Replace "mydomain.com.vn" by "mydomain.com.vn.local" in these domains and everything should start working as expected.
01-21-2010 07:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)