View Full Version : Question in "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora 8)"
davy_wei
23rd February 2008, 20:14
I followed all the steps in the "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora 8)" and finished the setup. The link of this HowTo is http://www.howtoforge.com/virtual-users-and-domains-postfix-courier-mysql-fedora8
After I finished the setup, I tried "telnet localhost 110", and entered user and pass. I got the error
[root@srv1 ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user test@myserver.com
+OK Password required.
pass test123
-ERR Maildir invalid (no 'cur' directory)
Connection closed by foreign host.
I check the /home/vmail folder. There is no domain myserver.com over there. I read the HowTo again, but there are no steps to create domain folder, and Maildir, cur, tmp folders in the vmail folder.
Does anyone knows how to force Postfix to create the folder if they are not existing? I used to use qmail and vpopmail. It creates the domain and Maildir folders when you creating the user accounts. However, this HowTo only tells me to create accounts in MySQL directly using phpMyAdmin.
Please help.
Thank you.
davy_wei
23rd February 2008, 21:37
OK, I added maildir folders by maildirmake. Now pop3 is working. However, I still can't send out emails. I tried in telnet directly, it looks fine, but I didn't get any emails in the destination mail box.
I also tried sending/receiving email in MS-Outlook, but smtp kept asking me password! Any ideas?
davy_wei
23rd February 2008, 21:42
Here is the error message I got in Outlook
Your message did not reach some or all of the intended recipients.
Subject: test
Sent: 2/23/2008 2:40 PM
The following recipient(s) cannot be reached:
'xxxx@hotmail.com' on 2/23/2008 2:40 PM
554 5.7.1 <xxxx@hotmail.com>: Relay access denied
Then I picked SMTP server need authentication. When sending email, outlook kept asking me the password.
davy_wei
23rd February 2008, 22:06
The smtp is working properly, but why the email is not sent and received? Please help!!!:( :( :( :(
[root@srv1 var]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 srv1.myserver.com ESMTP Postfix
ehlo myserver.com
250-srv1.myserver.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<lwei@myserver.com>
250 2.1.0 Ok
rcpt to:<davy_wei@myserver.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
test from remote host
test #2
.
250 2.0.0 Ok: queued as 6D7E38901BF
quit
221 2.0.0 Bye
falko
24th February 2008, 15:11
I check the /home/vmail folder. There is no domain myserver.com over there. I read the HowTo again, but there are no steps to create domain folder, and Maildir, cur, tmp folders in the vmail folder.
The Maildir is created automatically once you send the first email to this account.
davy_wei
24th February 2008, 16:31
Thank you for your replying.
Do you mean I don't need to worry about anything if I follow the steps of setup and everything is supposed to work properly. But why can't I receive any emails?
falko
25th February 2008, 17:59
But why can't I receive any emails?
Any errors in your mail log?
Please make sure that the MX records of your domains point to the correct server. You can check it like this:
dig mx yourdomain.com
davy_wei
26th February 2008, 06:02
Hi, Falko,
Thanks for your kindly reply. I checked the MX records and it shows correctly.
; <<>> DiG 9.5.0b1 <<>> mx mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8450
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mydomain.com. IN MX
;; ANSWER SECTION:
mydomain.com. 600 IN MX 10 mail.mydomain.com.
;; Query time: 230 msec
;; SERVER: 213.191.92.86#53(213.191.92.86)
;; WHEN: Mon Feb 25 22:56:18 2008
;; MSG SIZE rcvd: 50
Now I can receive the emails and they are delivered correctly. However, I still can't send out emails. The emails were sent out without return, but they are not delivered. I tried it both in telnet and MS-Outlook. I don't know where they are right now, but it looks like something is wrong. How should I do right now? What should I check?
Thanks
davy_wei
26th February 2008, 06:49
Here is actual problem for me.
I can only send emails to the same domain emails. For example, I can send emails from test1@mydomain.com to test2@mydomain.com. I did it successfully in MS Outlook. However, I can't send the email to my email @hotmail.com. I checked "My outgoing server (SMTP) requires authentication" in Outlook. When I click "Send" button, outlook kept asking my password for sending.
Do you know why this happens? What should I check and how to solve the issue.
I appreciate it.
falko
27th February 2008, 13:07
Any errors in your mail log?
Please check if your server is blacklisted: http://www.mxtoolbox.com/blacklists.aspx
mspIggy
9th July 2008, 01:49
hi - i am having the same problem
mx records are fine...
i am guessing it is POP Authenticated Relaying somewhere that has not been turned on
did you ever fix your problem? if so please tell me how
:)
thank you
iggy
falko
10th July 2008, 00:41
Which problem exactly?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.