Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd December 2008, 20:23
mrtot mrtot is offline
Junior Member
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10)

I hope this thread doesn't exist already.

I just followed the tutorial and some hours of googling later I am even able to login to squirrelmail and send mails.

Unfortunately I cannot receive mails

I created an account at dyndns.com (say: myacc.webhop.net) and pointed it to my machines IP address. This obviously does work since I can access squirrelmail via myacc.webhop.net/squirrelmail

When I try to send a mail to user@myacc.webhop.net the mail does not show up in squirrelmail.

Any suggestions?

Many thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 4th December 2008, 20:28
mrtot mrtot is offline
Junior Member
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay dudes, problem solved

I opened port 25 in my router.
After doing this mails sent to user@myacc.webhop.net got boounced back. I found the following error in my mail.log:

Dec 4 18:32:00 blabla postfix/trivial-rewrite[6816]: warning: do not list domain myacc.webhop.net in BOTH mydestination and virtual_mailbox_domains

To solve this problem I did the following:

postconf -e 'mydestination = localhost, localhost.localdomain'

Now I am able to send and retreive mail on my own mailserver... whooohooo!
Reply With Quote
  #3  
Old 11th December 2008, 13:57
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 60
Thanks: 8
Thanked 2 Times in 2 Posts
Question

I prefer not to open a new thread related to the same how-to...

During my test I found out two troubles.

The first one is quota related: I set up a 10485760 default quota as described into the how-to, and all the testing users have got this quota. But I'm receiving lots of attachments that increase my inbox up to 18045000 and over...
What to check?

The second problem is Apache related. I didn't change anything of the original preferences but the ones asked in the how-to. I'm able to connect to Squirrelmail within the same subnet of the Ubuntu machine (192.168.10.x). I'm able to connect to Squirrelmail even from 192.168.1.x (the Ubuntu machine is into a DMZ). But I can connect neither to Squirrelmail nor Apache homepage from outside... even if I can reach all the other services (SMTP, POP3, IMAP4).

Thanks in advance!
Reply With Quote
  #4  
Old 12th December 2008, 20:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by Rashef View Post
I prefer not to open a new thread related to the same how-to...

During my test I found out two troubles.

The first one is quota related: I set up a 10485760 default quota as described into the how-to, and all the testing users have got this quota. But I'm receiving lots of attachments that increase my inbox up to 18045000 and over...
What to check?
Any errors in your mail log?

Quote:
Originally Posted by Rashef View Post
The second problem is Apache related. I didn't change anything of the original preferences but the ones asked in the how-to. I'm able to connect to Squirrelmail within the same subnet of the Ubuntu machine (192.168.10.x). I'm able to connect to Squirrelmail even from 192.168.1.x (the Ubuntu machine is into a DMZ). But I can connect neither to Squirrelmail nor Apache homepage from outside... even if I can reach all the other services (SMTP, POP3, IMAP4).

Thanks in advance!
Please make sure that your ISP doesn't block port 80.
__________________
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
  #5  
Old 18th December 2008, 16:58
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 60
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
Any errors in your mail log?
After a few days of testing... I get no error, it seems like there's no size limit...
I checked /etc/postfix/mysql-virtual_mailbox_limit_maps.cf and I see no error. The quota set in the SQL table is 10485760.
This is the mailbox:

Code:
root@node1:/home/vmail/domain.test/rashef/cur# ls -la
total 27392
drwx------ 2 vmail vmail    4096 2008-12-18 15:49 .
drwx------ 9 vmail vmail    4096 2008-12-18 15:49 ..
-rw------- 1 vmail vmail    1020 2008-12-03 18:17 1228324634.V801I13e03aM33596:2,S
-rw------- 1 vmail vmail    2641 2008-12-03 18:18 1228324683.V801I13e03dM723580:2,RS
-rw------- 1 vmail vmail 3609920 2008-12-04 11:54 1228388085.V801I13e05aM348643:2,S
-rw------- 1 vmail vmail 3608091 2008-12-04 11:57 1228388230.V801I13e03fM851569:2,S
-rw------- 1 vmail vmail 3608091 2008-12-04 12:00 1228388412.V801I13e05eM243803:2,S
-rw------- 1 vmail vmail 3608721 2008-12-04 12:02 1228388552.V801I13e05fM358308:2,S
-rw------- 1 vmail vmail 3609351 2008-12-04 12:07 1228388844.V801I13e060M886163:2,S
-rw------- 1 vmail vmail 3609977 2008-12-04 12:11 1228389113.V801I13e061M263304:2,S
-rw------- 1 vmail vmail 6327459 2008-12-18 15:42 1229611332.V801I13e068M606581:2,S
P.S.: For the other problem, pfSense was not properly configured to allow connection between different subnet.

Last edited by Rashef; 18th December 2008 at 17:08.
Reply With Quote
  #6  
Old 19th December 2008, 18:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What do you see in the mail log when you send another big mail to that account?
__________________
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
  #7  
Old 19th December 2008, 19:23
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 60
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
What do you see in the mail log when you send another big mail to that account?
I sent a new mail with a 6MB pdf attached.
This is the mail.log:

Code:
Dec 19 18:20:40 node1 postfix/smtpd[14655]: connect from my_external_smtp[my_external_ip]
Dec 19 18:20:40 node1 postfix/smtpd[14655]: 7B0BBEBE11E: client=my_external_smtp[my_external_ip]
Dec 19 18:20:40 node1 postfix/cleanup[14659]: 7B0BBEBE11E: message-id=<C571964A.32CD%sender@domain.it>
When I opened Squirrelmail:

Code:
Dec 19 18:22:44 node1 postfix/qmgr[5220]: 7B0BBEBE11E: from=<sender@domain.it>, size=6293607, nrcpt=1 (queue active)
Dec 19 18:22:44 node1 postfix/smtpd[14655]: disconnect from my_external_smtp[my_external_ip]
Dec 19 18:22:47 node1 postfix/smtpd[14674]: connect from localhost.localdomain[127.0.0.1]
Dec 19 18:22:47 node1 postfix/smtpd[14674]: DECA3EBE1A5: client=localhost.localdomain[127.0.0.1]
Dec 19 18:22:47 node1 postfix/cleanup[14659]: DECA3EBE1A5: message-id=<C571964A.32CD%sender@domain.it>
Dec 19 18:22:47 node1 postfix/qmgr[5220]: DECA3EBE1A5: from=<sender@domain.it>, size=6294080, nrcpt=1 (queue active)
Dec 19 18:22:47 node1 postfix/smtpd[14674]: disconnect from localhost.localdomain[127.0.0.1]
Dec 19 18:22:47 node1 amavis[4578]: (04578-03) Passed CLEAN, [91.80.36.30] [my_external_ip] <sender@domain.it> -> <test@domain.test>, Message-ID: <C571964A.32CD%sender@domain.it>, mail_id: tfUfepO0Tayk, Hits: -, size: 6293607, queued_as: DECA3EBE1A5, 3729 ms
Dec 19 18:22:47 node1 postfix/smtp[14671]: 7B0BBEBE11E: to=<test@domain.test>, relay=127.0.0.1[127.0.0.1]:10024, delay=127, delays=124/0/0/3.7, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04578-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as DECA3EBE1A5)
Dec 19 18:22:47 node1 postfix/qmgr[5220]: 7B0BBEBE11E: removed
Dec 19 18:22:48 node1 postfix/virtual[14677]: DECA3EBE1A5: to=<test@domain.test>, relay=virtual, delay=1.2, delays=1/0.02/0/0.16, dsn=2.0.0, status=sent (delivered to maildir)
Dec 19 18:22:48 node1 postfix/qmgr[5220]: DECA3EBE1A5: removed
Thank you so much!

Last edited by Rashef; 19th December 2008 at 19:29.
Reply With Quote
  #8  
Old 20th December 2008, 18:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by Rashef View Post
I sent a new mail with a 6MB pdf attached.
This is the mail.log:

Code:
Dec 19 18:20:40 node1 postfix/smtpd[14655]: connect from my_external_smtp[my_external_ip]
Dec 19 18:20:40 node1 postfix/smtpd[14655]: 7B0BBEBE11E: client=my_external_smtp[my_external_ip]
Dec 19 18:20:40 node1 postfix/cleanup[14659]: 7B0BBEBE11E: message-id=<C571964A.32CD%sender@domain.it>
That's all? Nothing else?

Did you see any errors when you compiled Postfix with the quota patch?
__________________
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
  #9  
Old 20th December 2008, 18:30
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 60
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
That's all? Nothing else?
Did you see any errors when you compiled Postfix with the quota patch?
I only saw:
Code:
dpkg-buildpackage: warning: Failed to sign .dsc and .changes file
Reply With Quote
  #10  
Old 21st December 2008, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

I'd try to rebuild the Postfix package again. Maybe something went wrong the first time.
Make sure that the quota patch applies without errors.
__________________
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
Reply

Bookmarks

Tags
dyndns, receive mail, squirrelmail

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, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 superman HOWTO-Related Questions 3 23rd October 2008 10:19
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 Nareau HOWTO-Related Questions 4 16th September 2008 04:49
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 8.04 paulodani HOWTO-Related Questions 7 4th June 2008 01:46
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 mtzcesar HOWTO-Related Questions 3 1st June 2008 11:57


All times are GMT +2. The time now is 00:02.


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