HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Can't create New domains or emails (http://www.howtoforge.com/forums/showthread.php?t=55827)

supanatral 19th January 2012 03:16

Can't create New domains or emails
 
I posted this on another section of the website however I just noticed (after much google searching) that there is a section for ISPConfig on this site. Please forgive my double post however it's important that I get this resolved.

-

I just finished the initial setup of ISPConfig while following this guide:
http://www.howtoforge.com/perfect-se...ispconfig-3-p6

I'm having problems with creating a new email domain and sending email. When I sent a telnet email to the new server, I get the following error in the maillog:
Quote:

temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox.
When I try to setup outlook for the new account, I see this error:
Quote:

Jan 17 13:12:29 NT-MAIL01 pop3d: Connection, ip=[::ffff:172.23.23.151]
Jan 17 13:12:29 NT-MAIL01 pop3d: chdir /var/vmail/example.com/tuser: No such file or directory
When looking in the /var/vmail/ directory, I see that no folders have been created for the domain or user:
Quote:

[root@NT-MAIL01 vmail]# ll
total 4
drwxr-xr-x 2 root root 4096 Jan 16 17:04 mailfilters
How can I get this to work?

supanatral 19th January 2012 03:48

I just discovered something that may help us figure out the issue...

I logged into the vmail user ("su vmail") then created the domain directory and ran the command "maildirmake user1". After that, I was able to send an email to user1@domain.com and the email was delivered to the appropriate folder.

My question is this: Why isn't ISPConfig or maildrop creating the directories automatically?

till 19th January 2012 10:01

ISPConfig is creating these directories if its installed properly. As the directories were not created on your server, there must be a installation problem.

Check the ispconfig monitor if there are any pending jobs in the jobqueue and if there are any errors in the system log in the monitor.

supanatral 19th January 2012 15:28

Thanks for your help, after googling how to look at the jobqueue, I found this command:
Quote:

/usr/local/ispconfig/server/server.sh
When I run it, it creates all of the directories and everything starts working. I don't know what this command is suppose to do or whether I should add it to the cron job so it can get run automatically.

till 19th January 2012 15:38

This command is already configured to run as cronjonb once a minute. Yoiu can check that with the command:

crontab -l

as it does not seem to run on your system, there must be a error in your cron daemon or cron is not installed at all.

supanatral 19th January 2012 15:47

I think your right. It's listed in crontab but it isn't running:
Quote:

[root@NT-MAIL01 etc]# crontab -l
* * * * * /usr/local/ispconfig/server/server.sh &> /dev/null
30 00 * * * /usr/local/ispconfig/server/cron_daily.sh &> /dev/null
Where is the file that these cron jobs are listed?

till 19th January 2012 15:53

You can edit the crontab with:

crontab -e

The crontab you posted is fine,so there is no need to edit it. Instead you y´should vheck if you have the cron daemon of the linux distribution installed and started and if not install and start it.


All times are GMT +2. The time now is 17:28.

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