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
  #11  
Old 4th January 2010, 22:58
kresser kresser is offline
Junior Member
 
Join Date: Jan 2010
Posts: 23
Thanks: 0
Thanked 4 Times in 4 Posts
Default A note on VPS's to help others...

I didn't know this until now, but while doing "the perfect server" i always kept getting stuck on the quota part so usually i skipped it but as i need it so greedy clients dont end up using all my disk space. My vps is on a open vz platform and in order to use the quota feature i had to open a support ticket with my vps provider and have them enable it. and the remount command will not work as open vz does not allow those permissions for the client so you must reboot the machine. Hope this helps someone!
Reply With Quote
Sponsored Links
  #12  
Old 5th January 2010, 04:37
kresser kresser is offline
Junior Member
 
Join Date: Jan 2010
Posts: 23
Thanks: 0
Thanked 4 Times in 4 Posts
Default Finally getting somewhere.

I used this tutorial and everything is working except amavis, i almost want to say its official that amavis installs broken, once this issue is resolved i will post the solution for other users then close the thread. Thanks Falko! oh and by the way, its not always your fault, other users dont have the heart to deal with the amount of freedom linux offers! keep up the great work!
Reply With Quote
  #13  
Old 5th January 2010, 05:14
kresser kresser is offline
Junior Member
 
Join Date: Jan 2010
Posts: 23
Thanks: 0
Thanked 4 Times in 4 Posts
Default <sigh/>

Well no help from google on amavis all i know is i wont start, falko any ideas?

The server connects with imap fine, checks mail fine just nothing there, tries to send mail i just never get it, that may be a seperate issue, squirrelmail logs in and does just the same just fine, amavis is killing me though...
Reply With Quote
  #14  
Old 5th January 2010, 06:24
kresser kresser is offline
Junior Member
 
Join Date: Jan 2010
Posts: 23
Thanks: 0
Thanked 4 Times in 4 Posts
Default amavis ?

Is amavis a real high load daemon, i would think it is being a scanner and all, well my vps only has 512 ram as i got it for testing purposes, but if this could be the issue im upgrading the vps package anyways. I found after running /etc/init.d/amavis debug its showing segmentation fault, is that memory related. well should have new vps package tomorrow, well see.
Reply With Quote
  #15  
Old 5th January 2010, 13:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by kresser View Post
My vps is on a open vz platform
What's the output of
Code:
cat /proc/user_beancounters
?
__________________
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
  #16  
Old 5th January 2010, 20:52
kresser kresser is offline
Junior Member
 
Join Date: Jan 2010
Posts: 23
Thanks: 0
Thanked 4 Times in 4 Posts
Smile Thank You!

Well after getting the vps upgraded all of the mail in queue hit my box as amavis started just fine, really greatful for all your help <FALKO> i can send and recieve with ease now. I hope this thread helps somebody. And i take back what i said about amavis not working out of the box, was just a lack of resources!
Reply With Quote
  #17  
Old 11th January 2010, 00:48
rakeshakurathi rakeshakurathi is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ERROR: Connection dropped by IMAP server

i was breaking my head to solve this probs from 2 days i cant take it any more
please any one help me urgent

this is my mail log,
i can send mails from mailx, but when i send mail to one of the user from gmail account it bounces back with delivery notification,
in this log i have tried to connect through thunderbird which resulted in error ,even squirrelmail doesnt work,
i don know what is the problem


i followed http://www.howtoforge.com/virtual-us...-ubuntu9.04-p5
please guys help me any information is helpful

i have done all the steps 4 times and i dint get any error all the telnet sessions gave me the exact output as in the tutorial. please any one help me....


log file:-
Jan 11 00:30:41 exampleserver authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Jan 11 00:30:41 exampleserver authdaemond: authmysql: TEMPFAIL - no more modules will be tried
Jan 11 00:30:41 exampleserver imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:90.152.67.122]
Jan 11 00:30:41 exampleserver imapd: authentication error: Input/output error
Jan 11 00:31:53 exampleserver postfix/smtpd[4360]: connect from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:31:53 exampleserver postfix/smtpd[4360]: lost connection after CONNECT from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:31:53 exampleserver postfix/smtpd[4360]: disconnect from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:32:34 exampleserver postfix/anvil[4363]: statistics: max connection rate 2/60s for (smtp:90.152.67.122) at Jan 11 00:26:56
Jan 11 00:32:34 exampleserver postfix/anvil[4363]: statistics: max connection count 1 for (smtp:xxx.xxx.xx.xx) at Jan 11 00:22:34
Jan 11 00:32:34 exampleserver postfix/anvil[4363]: statistics: max cache size 2 at Jan 11 00:26:44
Jan 11 00:32:34 exampleserver postfix/smtpd[4360]: connect from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:32:34 exampleserver postfix/smtpd[4360]: lost connection after CONNECT from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:32:34 exampleserver postfix/smtpd[4360]: disconnect from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:33:34 exampleserver postfix/smtpd[4360]: connect from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:33:34 exampleserver postfix/smtpd[4360]: lost connection after CONNECT from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:33:34 exampleserver postfix/smtpd[4360]: disconnect from eba.b.xyar.se[xxx.xxx.xx.xx]
Jan 11 00:34:01 exampleserver imapd: Connection, ip=[::1]
Jan 11 00:34:01 exampleserver authdaemond: received auth request, service=imap, authtype=login
Jan 11 00:34:01 exampleserver authdaemond: authmysql: trying this module
Jan 11 00:34:01 exampleserver authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Jan 11 00:34:01 exampleserver authdaemond: authmysql: TEMPFAIL - no more modules will be tried
Jan 11 00:34:01 exampleserver imapd: LOGIN FAILED, user=amin@exampleserver.se, ip=[::1]
Jan 11 00:34:01 exampleserver imapd: authentication error: Input/output error
Reply With Quote
  #18  
Old 11th January 2010, 02:24
kresser kresser is offline
Junior Member
 
Join Date: Jan 2010
Posts: 23
Thanks: 0
Thanked 4 Times in 4 Posts
Default

I had to go through 4 or 5 tutorials myself before i got one right, i just finished "the perfect server" tutorial by falko, by the way mad props to him he's knows his stuff. I ran into many many problems and i'll do my best to offer any assistance i can. Let me clarify a few things, you cant login to outlook or thunderbird, or squirrelmail? but the "basic" method from the console on the server lets you send? show your postfix config so we can look it over for errors, might help diagnose the problem. its located at /etc/postfix/main.cf , also when you try to login via outlook or thunderbird what error does it give, the whole message not just the error code, and do you get past the password authentication? Also try going into account options and checking my server requires authentication, also i noticed this in your logs Jan 11 00:34:01 exampleserver authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.

Did you follow that part in the tutorial right, go and double check all the parts where you do mysql commands. I found out while doing mine that mysql does not accept passwords that have special characters in them, so make sure you dont, hope this helps some.
Reply With Quote
  #19  
Old 11th January 2010, 17:39
rakeshakurathi1 rakeshakurathi1 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy hey this is rakeshakurathi thanks for ur help

i would be very thank ful to u if u help me ...

yup i have done all the steps 4 times. nothing seems to be wrong everything is same as all the telnet debugging sessions are the exact copy of the tutorials

when i try to login from squirrel mail it says
ERROR: Connection dropped by IMAP server.

when i try to login from thunderbird it says username and password are invalid.

and earlier i have posted the mail.log file for these cases



Code:
 See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
#smtp_use_tls = no
smtp_tls_security_level = may
smtpd_use_tls = yes
smtpd_tls_security_level = may
#smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

#myhostname = eba.b.xyar.se
myhostname = exampleserver.se
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
myorigin =exampleserver.se
#mydestination = exampleserver.se, eba.b.xyar.se, localhost.d.ipeer.se, localhost
local_recipient_maps =
mydestination = exampleserver.se, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mynetworks_style = host
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
masquerade_domains = mail.exampleserver.se


# how long if undelivered before sending warning update to sender
delay_warning_time = 4h
# will it be a permanent error or temporary
unknown_local_recipient_reject_code = 450
# how long to keep message on queue before return as failed.
# some have 3 days, I have 16 days as I am backup server for some people
# whom go on holiday with their server switched off.
maximal_queue_lifetime = 7d
# max and min time in seconds between retries if connection failed
minimal_backoff_time = 1000s
maximal_backoff_time = 8000s
# how long to wait when servers connect before receiving rest of data
smtp_helo_timeout = 60s
# how many address can be used in one message.
# effective stopper to mass spammers, accidental copy in whole address list
# but may restrict intentional mail shots.
smtpd_recipient_limit = 16
# how many error before back off.
smtpd_soft_error_limit = 3
# how many max errors before blocking it.
smtpd_hard_error_limit = 12


# Requirements for the HELO statement
smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname,
                reject_invalid_hostname, permit
# Requirements for the sender details
smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_sender,
                reject_unknown_sender_domain, reject_unauth_pipelining, permit
# then add these
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
# Requirements for the connecting server
smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org,
                reject_rbl_client blackholes.easynet.nl,
                reject_rbl_client dnsbl.njabl.org
# Requirement for the recipient address
#smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks,
#               reject_non_fqdn_recipient, reject_unknown_recipient_domain,
#               reject_unauth_destination, permit
#               smtpd_data_restrictions = reject_unauth_pipelining
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

# require proper helo at connections
smtpd_helo_required = yes
# waste spammers time before rejecting them
smtpd_delay_reject = yes
disable_vrfy_command = yes

# not sure of the difference of the next two
# but they are needed for local aliasing
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
# this specifies where the virtual mailbox folders will be located
virtual_mailbox_base = /home/vmail
# this is for the mailbox location for each user
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
# and their user id
virtual_uid_maps = static:5000
# and group id
virtual_gid_maps = static:5000
# and this is for aliases
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
# and this is for domain lookups
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
# this is how to connect to the domains (all virtual, but the option is there)
# not used yet
# transport_maps = mysql:/etc/postfix/mysql_transport.cf
content_filter = amavis:[127.0.0.1]:10024
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
smtpd_sasl_authenticated_header = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
receive_override_options = no_address_mappings
Reply With Quote
  #20  
Old 11th January 2010, 17:44
rakeshakurathi1 rakeshakurathi1 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
 
Unhappy

[QUOTE=kresser;215748]your logs Jan 11 00:34:01 exampleserver authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.

i din find MYSQL_SERVER nor MYSQL_SOCKET in this file /etc/courier/authmysqlrc
Reply With Quote
Reply

Bookmarks

Tags
courier, mysql, postfix, quota, 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 9.10) keyslapper HOWTO-Related Questions 4 20th April 2010 15:46
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 05:39
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 05:53.


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