Welcome, Guest
Please Login or Register.
Lost Password?
Re:MTA Setup How-To??? (1 viewing)
Post Reply

TOPIC: Re:MTA Setup How-To???

#9308
ciaran29 (User)
Posts: 9
graphgraph
Re:MTA Setup How-To??? 2007/12/29 12:37  
X-Mail is at:

http://www.xmailserver.org/

It's BAY FAR the easiest unix mail system to setup. It is a single install for MTA/SMTP/POP3 out of the box. You compile/install binary, edit a few simple lints in the config, and start it....and it all works properly. It's also far faster than other solutions I have used via any other provider.

On their home page and forums are clear instructions on how to integrate with dovecot for IMAP support, as well as a host of scripts for spam/av filtering. The whole system is configured by a simple set of config files for mail domains and users/aliases. There are also several good Win32/X/PHP front ends that make it even more simple to administer.

The config files are plain english and easily configurable/readable by human beings....no macro languages in between. They are all simply:

"setting" <tab> "value" <tab> "value" <CR/LF>

There hs also a simple command line program to interface with the mailer to maintain the config files through simple commands. All that has to be done manually to get things up and running is the edit of the master config, use a utility to crypt a password for access via a control user, symlink their sendmail replacement, and start the daemon.

It would be far easier to integrate and maintain via a system like Virtualmin, and could be setup on any linux system regaurdless of the distribution very easily. Rather than having to create a complex setup for each user of directories, multiple lines in multiple config files, all that would have to be done is aither have the perl script use the command line client through an authorized admin user to add the domain and subsequent users, or have it add a single line to a single config to create the domain and the same for every user there after.

Why things have to be so complicated with sendmail/postfix/exim/qmail/cyrus/courier/sasl/dovcecot/mbox/Maildir/etc....I will never understand.
  The administrator has disabled public write access.
#9309
Joe (Admin)
Posts: 3798
graph
Re:MTA Setup How-To??? 2007/12/29 14:39  
When I create a mail user through virtualmin, it creates an entry in the postfix virtual domains table that maps user@domain to user-domain.com. This is wrong from what I can see hence virtualmin is setting up the mail user's home directory in /home/domain-login/homes/user with a unix user user@domain.com. If it is then telling postfix to map this to user-domain.com it has nowhere to go.

No, two usernames is correct. It's documented behavior. See this FAQ:

http://www.virtualmin.com/faq/cat/virtualmin/68/#faq30

The two usernames is not the source of your trouble.

mydestination = $myhostname, localhost.$mydomain, $mydomain, bricohosts.com

This might be an issue, but not specific to the error you're reporting. Is "bricohosts.com" also in your virtual maps file (/etc/postfix/virtual)?

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination permit_i$

This doesn't look like a valid configuration line. "permit_i$" is not anything I recognize. You should be getting an error about this, and Postfix will refuse to restart (I think, anyway).

myorigin = $mydomain

This is actually probably the issue with your "com.com" thing. myorigin does bad things if the fully qualified hostname of the system is not sane and not matching DNS and not matching the value of "$mydomain". Remove this line, restart Postfix and see what happens.
  The administrator has disabled public write access.
#9314
ciaran29 (User)
Posts: 9
graphgraph
Re:MTA Setup How-To??? 2007/12/29 21:47  
Well....I finally got it working. Removing myorigin = $mydomain was the fix for the com.com problem. The other problem was that the system was not sending the mail to the ~/Maildir like i had configured everything to do. For some reason mail was being placed in the ~/.maildir folder. I simply reconfigured dovecot to look there for mail and all seems to be working fine now. Thanks for the procmail-wrapper code and all your other help Joe.

The only problem I have at this point is that when a virtual server is setup it does not setup mail by default for the master account. I have looked for this setting in the server templates and the virtualmin config and can't seem to find it. May just be over looking it....so many things in there. The other thing is that I am using user@domain format for my e-mail system and when I do manually enable the mail service for the master VS user it sets it up as just the username. Any ideas on how to change this?

Thanks again for your help, and if you are ever interested in making gentoo or xmail compatable with virtualmin, don't hesitate to drop me a mail at ciaran29 [at] gmail [dot] com
  The administrator has disabled public write access.
#9318
Joe (Admin)
Posts: 3798
graph
Re:MTA Setup How-To??? 2007/12/30 13:17  
The other problem was that the system was not sending the mail to the ~/Maildir like i had configured everything to do. For some reason mail was being placed in the ~/.maildir folder.

Sounds like you've got Procmail misconfigured. Check your /etc/procmailrc.

The only problem I have at this point is that when a virtual server is setup it does not setup mail by default for the master account. I have looked for this setting in the server templates and the virtualmin config and can't seem to find it. May just be over looking it....so many things in there. The other thing is that I am using user@domain format for my e-mail system and when I do manually enable the mail service for the master VS user it sets it up as just the username. Any ideas on how to change this?

I'll flip the order of your questions to answer them, because I think it'll make it more clear the purpose of this account:

You don't want to change the login to domain@domain.tld, because that'd be how the administrative user would have to login to Virtualmin, and that'd kinda suck and confuse people. This account is purely for administrative purposes--accepting mail is merely a side effect, and isn't really intended for use as somebodies primary mailbox. So, the answer is no--you can't change this to domain@domain.tld. You can, however, fill in some other email address to be the contact address for this virtual server, including one you plan to create for the virtual server once it exists. So, my contact address for virtualmin.com is joe@virtualmin.com, and not virtualmin@virtualmin.com. This can be set in the "Contact email address" field on the virtual server creation form, or it can be changed after creation.

We'd like to do a Gentoo release, eventually. But it's quite far down the todo list (we're just two guys, and Gentoo, while having a very loyal following, doesn't have a very large following...at least not one that has an interest in our commercial products...so it ends up on the back burner).
  The administrator has disabled public write access.
#12371
thetitan (User)
Posts: 34
graphgraph
Re:MTA Setup How-To??? 2008/05/09 11:13  
AHH, finally. I have been going nuts with not being able to receive any mail. Removing "myorigin = $mydomain" solved everything.

Why the heck is that line in the config file to start with?
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.