Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-22-2004, 09:37 PM   #1
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Rep: Reputation: 15
Postfix Admin tool not able to create mailbox

I have been trying to set up virtual domains under apache and also figuring out postfix's virtual mailbox domains.

I found a howto about it and followed the directions to setup a mysql database to record the hosted domains and users, postfix to handle the delivery, and courier-imap to serve the mail out to the end users.

This was made simpler by the Postfix Admin webtool (php), but now it seems that I can't create the actual mailbox directories using the script.

The script actually calls fsockopen, which attempts to send a bogus email to the local account by manually opening a SMTP transaction on localhost port 25, normally resulting in postfix automatically creating the corresponding mail directory (/usr/local/virtual/

Now, the fsockopen seems to work, judging by the output variable $errmsg being "Success", but the filehandle in the code is still zero, thus the SMTP transaction never takes place.

Does anyone have any idea if there could be something wrong with SMTP, or perhaps with permissions on the fsockopen function? Is there a PHP configuration variable for fsockopen that I don't know about?
Old 09-22-2004, 10:02 PM   #2
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
The resolution to this problem is simple:

fsockopen relies on dns or host files to resolve the hosts.

For some reason, against my will, something removed the localhost entry from my /etc/hosts.

Once it was added back in, voila!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailbox usage,Squirrelmail,Postfix & WU IMAPD Swift&Smart Linux - Software 2 08-09-2004 12:05 AM
Linux Admin Tool SeaLestt Linux - Newbie 7 07-23-2004 08:52 PM
Postfix not delivering mail to mailbox DeVryGuy Linux - Software 13 09-22-2003 12:43 AM
SWAT-Admin tool nero64 Linux - Newbie 8 12-15-2002 05:15 AM
admin tool gunz Linux - General 2 10-01-2002 03:22 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration