Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 6th September 2012, 19:12
gscales gscales is offline
Member
 
Join Date: May 2012
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi lazacom;

I am having send problems on my new server as well, so take what I say with a grain of salt. I have done so much reading attempting to solve my problem, that I can readily see some problems with yours.

1. When you move from ispconfig to virtualmin (or from any panel to another for that matter), always do a complete re-install first. Different panels access system files differenly and you don't want the remains of one interfering with another.

2. Postfix should run as root. Here is a directory listing of a server that is running virtualmin/postfix/dovecot:

# ls -l
total 100
-rwxr-xr-x 1 root root 0 2012-01-09 16:45 bcc
-rw-r--r-- 1 root root 12288 2012-02-24 14:24 bcc.db
-rw-r--r-- 1 root root 370 2012-01-09 16:41 dynamicmaps.cf
-rw-r--r-- 1 root root 1737 2012-05-09 18:23 main.cf
-rw-r--r-- 1 root root 5357 2012-01-09 16:46 master.cf
-rw-r--r-- 1 root root 18992 2011-05-10 08:47 postfix-files
-rwxr-xr-x 1 root root 8729 2011-05-10 08:47 postfix-script
-rwxr-xr-x 1 root root 24256 2011-05-10 08:47 post-install
drwxr-xr-x 2 root root 4096 2012-01-09 16:46 sasl
-rwxr-xr-x 1 root root 3690 2012-05-09 18:23 virtual
-rw-r--r-- 1 root root 12288 2012-05-09 18:23 virtual.db

notice that everything is chowned root:root. It's not exactly the same on ispconfig, but you are using virtualmin, not ispconfig, so I would think yours should look more like the above.
Reply With Quote
Sponsored Links
  #12  
Old 6th September 2012, 19:23
lazacom lazacom is offline
Junior Member
 
Join Date: Sep 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Tnx, tried to chown it to root, and errors reduced to half. Now I just get:

Quote:
Sep 6 19:18:25 server02 postfix/proxymap[10761]: fatal: /etc/postfix/mysql-virtual_mailboxes.cf: bad string length 0 < 1: dbname =
Sep 6 19:18:26 server02 postfix/smtpd[8305]: warning: private/proxymap socket: service dict_proxy_open: Success
Sep 6 19:18:26 server02 postfix/master[8205]: warning: process /usr/libexec/postfix/proxymap pid 10761 exit status 1
Sep 6 19:18:26 server02 postfix/master[8205]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Pretty good progress but still not sending emails to any other domain except mine. Any idea what to put in files above, I just created all of them, so they are blank.
Reply With Quote
  #13  
Old 6th September 2012, 19:27
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

you misconfigured something in /etc/postfix/mysql-virtual_mailboxes.cf maybe a typo or something similar
Reply With Quote
  #14  
Old 6th September 2012, 19:42
gscales gscales is offline
Member
 
Join Date: May 2012
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi lazacom;

That setting is a left over from ISPConfig3. Here is the postconf -n command output from a virtualmin server I have access to:

/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
message_size_limit = 40960000
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
non_smtpd_milters = inet:localhost:8891
readme_directory = no
recipient_delimiter = +
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = mail.noahidenations.com ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual

Notice that the mail directory is not virutal, but home_mailbox = Maildir/ ... the mail directory on this server is /home/domainName/Maildir. Basically, the mailbox configurations are handled differently in virtualmin than ispconfg.
Reply With Quote
  #15  
Old 6th September 2012, 19:51
gscales gscales is offline
Member
 
Join Date: May 2012
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default

"Pretty good progress but still not sending emails to any other domain except mine. Any idea what to put in files above, I just created all of them, so they are blank."

It's not really that simple. Those file configure how to set up mailboxes that are maintained in mysql like ispconfig does it. I don't think that's what you are actually after.

Let me ask you this, can you send to other domains with webmail or not?

Greg
Reply With Quote
  #16  
Old 6th September 2012, 19:52
lazacom lazacom is offline
Junior Member
 
Join Date: Sep 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not tried webmail, but I can install squirrelmail and check it...
Reply With Quote
  #17  
Old 6th September 2012, 20:00
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

read the documentation ... http://www.postfix.org/documentation.html/ , i'm still not sure what you're trying to acomplish

Last edited by TiTex; 6th September 2012 at 20:03.
Reply With Quote
  #18  
Old 6th September 2012, 20:01
gscales gscales is offline
Member
 
Join Date: May 2012
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by lazacom View Post
Not tried webmail, but I can install squirrelmail and check it...
Go for it!
Reply With Quote
  #19  
Old 6th September 2012, 20:21
gscales gscales is offline
Member
 
Join Date: May 2012
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by TiTex View Post
read the documentation ... http://www.postfix.org/documentation.html/ , i'm still not sure what you're trying to acomplish
I think he's trying to do the same thing I am: Using a mail client such as Outlook or Thunderbird, connected from outside of $mynetworks, send to a domain that is not $mydomain. Do you know how to do that?
Reply With Quote
  #20  
Old 6th September 2012, 20:43
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex
 
Default

1. yes i know how to do that but i wont explain this here since it has been posted in the HowTo's section http://www.howtoforge.com/howtos/email/postfix many times with all kind/type of configurations.

2. i've posted above the link for the oficial postfix documentation did you even bother to click on it ? ... there are some examples on how to configure postfix with or without virtual users

3. postfix alone will not work because you'll need an imap,pop service to interact with the postfix MTA when you're sending mail from a mail client , or webmail ... dovecot,cyrus and/or courier will do that

4. to make this easy for you guys there are some very good all in one packages out there
(smtp,pop3,imap,webmail) like iRedMail , Zimbra both are using postfix as their MTA, or Axigen Free Edition that has it's own proprietary mail system with everything.

These being said , when you don't know how something works ... read the documentation!
Have fun!

Last edited by TiTex; 6th September 2012 at 20:48.
Reply With Quote
Reply

Bookmarks

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
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 13:29
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 12:23
Need help get mail to work (can't recieve and apperently can't send) omega13a Installation/Configuration 19 20th August 2009 21:06


All times are GMT +2. The time now is 16:37.


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