LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2012, 05:34 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Is there any problem on Ubuntu 1004 server, 64bit


Hi folks,

host - Ubuntu 1104 desktop 64bit
VM - Ubuntu 1004 server 64bit
Orcle VirtualBox
(this VM was cloned on another VM, a base and newly installed Ubuntu 1004 server without postfix/apache/server software, etc. installed)
Fixed IP


I did following test twice by following;
Postfix Basic Setup Howto
https://help.ubuntu.com/community/Po...asicSetupHowto

entercountering the same problem, postfix unable to receive mails.


The problem started at:-

fmaster@ser01:~$ cd Maildir/new
Code:
-su: cd: Maildir/new: Not a directory
satimis@ser01:~$ tail /var/log/mail.log
Code:
Feb 16 18:39:43 ser01 postfix/cleanup[2196]: 012A59FE48: message-id=<20120216103943.012A59FE48@ser01.mydomain.com>
Feb 16 18:39:43 ser01 postfix/bounce[2199]: EF49D9FE45: sender non-delivery notification: 012A59FE48
Feb 16 18:39:43 ser01 postfix/qmgr[2189]: 012A59FE48: from=<>, size=2330, nrcpt=1 (queue active)
Feb 16 18:39:43 ser01 postfix/qmgr[2189]: EF49D9FE45: removed
Feb 16 18:39:43 ser01 postfix/local[2198]: 012A59FE48: to=<root@mydomain.com>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Feb 16 18:39:43 ser01 postfix/qmgr[2189]: 012A59FE48: removed
Feb 16 18:39:46 ser01 postfix/smtpd[2191]: disconnect from unknown[xxx.xxx.xxx.xxx] (fixed IP)
Feb 16 18:43:06 ser01 postfix/anvil[2194]: statistics: max connection rate 1/60s for ([smtp:xxx.xxx.xxx.xxx] (fixed IP)) at Feb 16 18:37:41
Feb 16 18:43:06 ser01 postfix/anvil[2194]: statistics: max connection count 1 for ([smtp:xxx.xxx.xxx.xxx] (fixed IP)) at Feb 16 18:37:41
Feb 16 18:43:06 ser01 postfix/anvil[2194]: statistics: max cache size 1 at Feb 16 18:37:41
fmaster@ser01:~$ ls
Code:
Maildir
fmaster@ser01:~$ cat Maildir
No printout

fmaster@ser01:~$ ls -al Maildir
Code:
-rw------- 1 fmaster fmaster 0 2012-02-16 18:31 Maildir
satimis@ser01:~$ tail /var/log/mail.log
Code:
Feb 16 18:50:21 ser01 postfix/cleanup[2363]: D5A6A9FE45: message-id=<1329389418.67830.YahooMailNeo@web113210.mail.gq1.yahoo.com>
Feb 16 18:50:21 ser01 postfix/qmgr[2189]: D5A6A9FE45: from=<somebody@yahoo.com>, size=2991, nrcpt=1 (queue active)
Feb 16 18:50:21 ser01 postfix/local[2364]: D5A6A9FE45: to=<fmaster@mydomain.com>, relay=local, delay=0.8, delays=0.79/0/0/0.01, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /home/fmaster/Maildir/tmp/1329389421.P2364.ser01.mydomain.com: Not a directory)
Feb 16 18:50:21 ser01 postfix/cleanup[2363]: 756319FE48: message-id=<20120216105021.756319FE48@ser01.mydomain.com>
Feb 16 18:50:21 ser01 postfix/bounce[2365]: D5A6A9FE45: sender non-delivery notification: 756319FE48
Feb 16 18:50:21 ser01 postfix/qmgr[2189]: 756319FE48: from=<>, size=5059, nrcpt=1 (queue active)
Feb 16 18:50:21 ser01 postfix/qmgr[2189]: D5A6A9FE45: removed
Feb 16 18:50:21 ser01 postfix/smtpd[2358]: disconnect from nm25-vm0.bullet.mail.sp2.yahoo.com[98.139.91.228]
Feb 16 18:50:25 ser01 postfix/smtp[2366]: 756319FE48: to=<somebody@yahoo.com>, relay=mta7.am0.yahoodns.net[66.94.238.147]:25, delay=3.8, delays=0/0/1.7/2.1, dsn=2.0.0, status=sent (250 ok dirdel)
Feb 16 18:50:25 ser01 postfix/qmgr[2189]: 756319FE48: removed
satimis@ser01:~$ cat /etc/postfix/main.cf | grep home_mailbox
Code:
home_mailbox = Maildir/
dig mx mydomain.com
nslookup mydomain.com
worked without problem showing mydomain.com and fixed IP

Mails came but unable to create a mailbox.


Then I made another test also following the same document. I installed the server on another VM, running Debian 600 desktop(64 bit) which was also cloned on another Debian 600 desktop VM. No problem was found. The document (Howto) works perfectly on Debian 600. Mails were received by postfix.

Please help me to understand the problem. I have injected hours of work on this test. TIA

B.R.
satimis
 
Old 02-18-2012, 11:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by satimis View Post
Hi folks,
host - Ubuntu 1104 desktop 64bit VM - Ubuntu 1004 server 64bit Orcle VirtualBox
(this VM was cloned on another VM, a base and newly installed Ubuntu 1004 server without postfix/apache/server software, etc. installed) Fixed IP

I did following test twice by following; Postfix Basic Setup Howto
https://help.ubuntu.com/community/Po...asicSetupHowto

entercountering the same problem, postfix unable to receive mails.

The problem started at:-
Code:
fmaster@ser01:~$ cd Maildir/new
-su: cd: Maildir/new: Not a directory
dig mx mydomain.com
nslookup mydomain.com
worked without problem showing mydomain.com and fixed IP

Mails came but unable to create a mailbox.

Then I made another test also following the same document. I installed the server on another VM, running Debian 600 desktop(64 bit) which was also cloned on another Debian 600 desktop VM. No problem was found. The document (Howto) works perfectly on Debian 600. Mails were received by postfix.

Please help me to understand the problem. I have injected hours of work on this test. TIA
I bolded the error above...the maildir/new directory either doesn't exist, or is a file instead of a directory. So, either delete the file and create the "new" directory, or just make the directory. An excerpt from the how-to you posted:
Code:
Maildir is a format for an e-mail spool that does not require file locking to maintain message integrity because the 
messages are kept in separate files with unique names. A Maildir is a directory (often named Maildir) with three 
subdirectories named tmp, new, and cur. The subdirectories should all reside on the same filesystem.
 
Old 02-19-2012, 09:25 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by TB0ne View Post
I bolded the error above...the maildir/new directory either doesn't exist, or is a file instead of a directory. So, either delete the file and create the "new" directory, or just make the directory. An excerpt from the how-to you posted:
Code:
Maildir is a format for an e-mail spool that does not require file locking to maintain message integrity because the 
messages are kept in separate files with unique names. A Maildir is a directory (often named Maildir) with three 
subdirectories named tmp, new, and cur. The subdirectories should all reside on the same filesystem.
Hi,

Thanks for your advice.

When the line
Code:
home_mailbox = Maildir/
is on /etc/postfix/main.cf, all incoming mails are loop-back and then rejected. When the aforesaid line is commented out all incoming mails are delivered on "Maildir" or "mail" as a big file.

I have been struggling several days without a solution. This is a Virtual machine(PC) running Oracle VirtualBox for 3~4 years without problem.

Host Ubuntu 11.04 desktop (64bit)
about 20 VMs have been created, NOT all of them running at the same time. I use this machine mainly for testing. The complete story, my bad dream, is as follows;

1)
Created a new VM, say VM1, running Ubuntu 10.04 (LTS) base server but without mail/web etc. software installed. On it I cloned a VM, say VM2 testing;

Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10)
http://www.howtoforge.com/virtual-us...l-ubuntu-11.10

Installation went through without problem. But the server can send mails but can't receive mails.

2)
Then I created another VM, say VM3, (also cloned on VM1) and followed;
Postfix Basic Setup Howto
https://help.ubuntu.com/community/Po...asicSetupHowto

Same problem was encountered. The mail server can send mail but unable to receive mails.

3)
Then I created another VM say VM4 (cloned on a VM running Debain 6.0 desktop, 64bit) and followed
Postfix Basic Setup Howto
https://help.ubuntu.com/community/Po...asicSetupHowto

The mail server can send and receive mails without problem.

4)
Then I removed VM3 mentioned in 2) above. Cloned another a new VM on VM1, say VM4. I followed;
Postfix
https://help.ubuntu.com/10.04/server...C/postfix.html

building another mail server. To my surprise I encountered the same problem, the mail server unable to receive mails.


I think I'll stop here. I just installed a Debien 6.0 base server (64bit). I shall test abovementioned documents on VM cloned on Debian 6.0 base server. Thanks

B.R.
satimis
 
Old 01-15-2013, 10:26 AM   #4
lusrmgr
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Same Results on U 12.10

Hi,

I ran into the same problem as I went through the Postfix Basic Setup How to for Ubuntu and it seemed related to permission for the directory that Maildir was making.

For the short term I removed the file "Maildir" under the user and then did mkdir Maildir. I had to chmod 777 so that maildir could make and use the sub-folders. Mail appears to deliver ok for the moment. But will I have to manage every new user?

I am also curious why Ubuntu 12.10 has trouble with Maildir and permissions?

Thanks all - Lusrmgr

My log:

Jan 15 09:16:40 mail postfix/local[4814]: warning: maildir access problem for UID/GID=1001/1001: create maildir file /home/fmaster/Maildir/tmp/1358263000.P4814.mail: Permission denied
Jan 15 09:16:40 mail postfix/local[4814]: warning: perhaps you need to create the maildirs in advance
Jan 15 09:16:40 mail postfix/local[4814]: B11AAA046B: to=<fmaster@localhost>, relay=local, delay=34, delays=34/0.02/0/0.09, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /home/fmaster/Maildir/tmp/1358263000.P4814.mail: Permission denied)
 
  


Reply



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
Confusion installing Ubuntu 64bit Server ramsforums Linux - Newbie 1 02-16-2011 06:38 AM
Trying to get usb pass through to work with Vmware Server on Ubuntu Server 9.1 64bit gyzer Linux - Virtualization and Cloud 2 05-02-2010 12:15 PM
Problem with graphic optiplex 740 ubuntu 9.10 64bit luke08 Linux - Desktop 2 12-13-2009 01:03 AM
wifi in ubuntu server 9.04(64bit) theacerguy Linux - Wireless Networking 3 07-05-2009 10:32 AM
LXer: Installing VMWare Server 2 Beta in Ubuntu Hardy 64bit LXer Syndicated Linux News 0 07-01-2008 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:03 AM.

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