Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th March 2006, 13:17
fenix fenix is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto

After completing the Virtual Users And Domains With Postfix, Courier And MySQL step though (http://www.howtoforge.com/virtual_po...quota_courier).

As far as i can tell i've completed it to the letter.

Copies of my configuration files can be accessed here:
http://220.233.179.84/mail-config/

But when i try to smtp myself an email i get this:

Code:
ehlo mail.example.com
250-mail.mediafluid.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from: blah@example.com
250 Ok
rcpt to: aaron@mediafluid.net
451 <aaron@mediafluid.net>: Temporary lookup failure
Pop gives me this:
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK Hello there.
user aaron@mediafluid.net
+OK Password required.
pass <<password>>
-ERR Maildir: No such file or directory
Connection closed by foreign host.
Mysql Structure is as follows: (Transports not show because i dont have/need them).
Code:
mysql> show tables;
+----------------+
| Tables_in_mail |
+----------------+
| domains        |
| forwardings    |
| transport      |
| users          |
+----------------+

mysql> select * from domains;
+----------------+
| domain         |
+----------------+
| mediafluid.net |
+----------------+
1 row in set (0.00 sec)

mysql> select * from forwardings;
+---------------------+---------------------+
| source              | destination         |
+---------------------+---------------------+
| info@mediafluid.net | test@mediafluid.net |
+---------------------+---------------------+
1 row in set (0.01 sec)

mysql> select * from users;
+----------------------+---------------+----------+
| email                | password      | quota    |
+----------------------+---------------+----------+
| test@mediafluid.net  | ojuzu1LcDjnhU | 10485760 |
| aaron@mediafluid.net | 0uFEd8Rm7./Mc | 10485760 |
+----------------------+---------------+----------+
2 rows in set (0.02 sec)
/etc/init.d/postfix reload and check both come back with [ ok ].

/var/log/mail.warn contains this(repeating over and over every second):
Code:
Mar 10 23:10:00 localhost postfix/postdrop[16493]: warning: mail_queue_enter: create file maildrop/591653.16493: No such file or directory
Mar 10 23:10:01 localhost postfix/postdrop[15383]: warning: mail_queue_enter: create file maildrop/937108.15383: No such file or directory
Mar 10 23:10:01 localhost postfix/postdrop[14833]: warning: mail_queue_enter: create file maildrop/116518.14833: No such file or directory
Reply With Quote
Sponsored Links
  #2  
Old 10th March 2006, 14:19
fenix fenix is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
root@evo:/var/spool/mail# postconf -d |grep queue_directory
queue_directory = /var/spool/postfix
Code:
root@evo:/var/spool/postfix# ls -l
total 72
drwx------   2 postfix root     4096 Mar 11 00:14 active
drwx------   2 postfix root     4096 Mar 10 18:41 bounce
drwx------   2 postfix root     4096 Mar 10 18:41 corrupt
drwx------  13 postfix root     4096 Mar 11 00:04 defer
drwx------  13 postfix root     4096 Mar 11 00:04 deferred
drwxr-xr-x   2 root    root     4096 Mar 10 20:03 etc
drwx------   2 postfix root     4096 Mar 10 18:41 flush
drwx------   2 postfix root     4096 Mar 10 18:41 hold
drwx------   2 postfix root     4096 Mar 11 00:00 incoming
drwxr-xr-x   2 root    root     4096 Mar 10 20:03 lib
drwxrwx---   2 postfix root     4096 Mar 11 00:18 maildrop
drwxr-xr-x   2 root    root     4096 Mar 10 20:26 pid
drwx------   2 postfix root     4096 Mar 10 20:03 private
drwx--x---   2 postfix postdrop 4096 Mar 10 20:03 public
drwx------   2 postfix root     4096 Mar 10 18:41 saved
drwx------   2 postfix root     4096 Mar 10 18:41 trace
drwxr-xr-x   3 root    root     4096 Mar 10 18:41 usr
drwxr-xr-x   3 root    root     4096 Mar 10 19:18 var
Reply With Quote
  #3  
Old 10th March 2006, 15:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by fenix
Code:
ehlo mail.example.com
250-mail.mediafluid.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from: blah@example.com
250 Ok
rcpt to: aaron@mediafluid.net
451 <aaron@mediafluid.net>: Temporary lookup failure
mediafluid.net doesn't exist in DNS. Therefore Postfix can't find it:

Code:
dig mediafluid.net

; <<>> DiG 9.2.4 <<>> mediafluid.net
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 25093
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mediafluid.net.                        IN      A

;; Query time: 164 msec
;; SERVER: 66.135.40.144#53(66.135.40.144)
;; WHEN: Fri Mar 10 14:29:36 2006
;; MSG SIZE  rcvd: 32
You must create an A record for the domain (an MX record would be good, too).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 10th March 2006, 23:15
fenix fenix is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The machine running postfix doesn't seem to have any problem finding it
Code:
aaron@evo:~$ dig mediafluid.net

; <<>> DiG 9.3.1 <<>> mediafluid.net
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60677
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;mediafluid.net.                        IN      A

;; ANSWER SECTION:
mediafluid.net.         14386   IN      A       65.254.54.82

;; AUTHORITY SECTION:
mediafluid.net.         14386   IN      NS      ns2.amsdns.com.
mediafluid.net.         14386   IN      NS      ns.amsdns.com.

;; Query time: 28 msec
;; SERVER: 220.233.0.4#53(220.233.0.4)
;; WHEN: Sat Mar 11 09:14:46 2006
;; MSG SIZE  rcvd: 93
Edit: Just tried it on a few other machines i have shell accounts on it seems to be working.

The other thing is that i dont have the domain pointed to this machine yet because i dont want to loose mail if the setup doesn't work

I think i'll be more will to point my domain to the server when i fix these errors.
Code:
Mar 10 23:10:00 localhost postfix/postdrop[16493]: warning: mail_queue_enter: create file maildrop/591653.16493: No such file or directory
Mar 10 23:10:01 localhost postfix/postdrop[15383]: warning: mail_queue_enter: create file maildrop/937108.15383: No such file or directory
Mar 10 23:10:01 localhost postfix/postdrop[14833]: warning: mail_queue_enter: create file maildrop/116518.14833: No such file or directory

Last edited by fenix; 10th March 2006 at 23:30.
Reply With Quote
  #5  
Old 11th March 2006, 02:53
fenix fenix is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind its all fixed.

A reboot got rid of those file not found errors and its all working locally.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota... killfrog HOWTO-Related Questions 3 25th September 2009 21:45
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) brianwc HOWTO-Related Questions 6 9th May 2007 02:44
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs Rocky Installation/Configuration 24 9th February 2006 11:08


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


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