I simply want the email address firstname.lastname@example.org for each virtual host I set up. However, I see that the defaul is email@example.com -- how can I change this?
I also want to remove all aliases since I want just 1 email address, but it doesn't let me. Why?
Also, where can I change the password for email? Is it not possible to have this different from my ftp pw?
Well, you can't change the name of the accounts it creates by default.
You can, however, add aliases for that account.
So firstname.lastname@example.org will still be the account name -- but in the Server Templates under Mail for Domain, you can setup any number of aliases (such as "info") to be associated with that account.
Ok, I have done that, but I dont seem to be receiving the email. (I'm just using "read user mail" at the moment)
I don't get any email notification that it's failed so I don't know what's going on.
Well, first, I'd go into Edit Mail Aliases for the domain in question and verify that the correct aliases are listed.
Second, I'd view the email logs and see what sort of errors, if any, show up when sending an email to that account.
The email logs are generally either in /var/log/mail.log or /var/log/maillog.
Unfortunately the site is already live, I've checked the install.sh source code but don't see much mention of postfix. Or are you using a special prepackaged rpm to install this?
I wanted to check the install.sh to see if perhaps the commands I needed to do were in the source code, but alas, they are not.
Also, since people can install virtualmin after the fact, perhaps there should be a config checker of some sort? Or is that there already? Something that checks and makes sure everything is compatible with web/virtualmin.
Well, I can't guarantee this will work at all, as I don't know what isn't setup on your machine -- however, below are the contents of a /etc/procmailrc file from a Virtualmin GPL install I have:
* ?/usr/bin/test "$VIRTUALMIN" != ""
Hi, it works! :) I can see it in my /home/ dir.
But is it normal that when I go to webmin > servers > read user mail that it only shows /var/mail/username instead of /home/username/mail ?
Hmm, I've now connected via pop, are there special settings for dovecot as well since it doesn't retrieve any emails ?
Read user email is still using the old /var/mail/username location though.
<div class='quote'>Read user email is still using the old /var/mail/username location though.</div>
Also configurable. Webmin:Usermin Configuration:Usermin Module Configuration:Read Mail
I tend to prefer to use the IMAP mode...which puts all file access of to the IMAP server (meaning Usermin doesn't have to care where mail spools live), but you can configure it to access Maildir directly, as well.
Check out the forum guidelines!
Here's the tail from maillog:
=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 2B1146581A4)
Dec 8 20:33:08 server postfix/local: 2B1146581A4: to=<email@example.com>, relay=local, delay=0.05, delays=0.04/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 8 20:33:08 server postfix/qmgr: 2B1146581A4: removed
Dec 8 20:33:08 server postfix/smtpd: disconnect from mysite.com[127.0.0.1]
Dec 8 20:33:08 server sendmail: mB92X8V9009710: from=root, size=343, class=0, nrcpts=1, msgid=<200812090233.mB92X8V9009710@mysite.com>, relay=root@localhost
Dec 8 20:33:08 server postfix/smtpd: connect from mysite.com[127.0.0.1]
Dec 8 20:33:08 server postfix/smtpd: 3BECD6581A4: client=mysite.com[127.0.0.1]
Dec 8 20:33:08 server postfix/cleanup: 3BECD6581A4: message-id=<200812090233.mB92X8V9009710@mysite.com>
Dec 8 20:33:08 server postfix/qmgr: 3BECD6581A4: from=<firstname.lastname@example.org>, size=895, nrcpt=1 (queue active)
Dec 8 20:33:08 server sendmail: mB92X8V9009710: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30343, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 3BECD6581A4)
Dec 8 20:33:08 server postfix/local: 3BECD6581A4: to=<email@example.com>, relay=local, delay=0.05, delays=0.04/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 8 20:33:08 server postfix/qmgr: 3BECD6581A4: removed
Dec 8 20:33:08 server postfix/smtpd: disconnect from mysite.com[127.0.0.1]
Dec 8 20:49:42 server sendmail: mB92ngmp009945: from=root, size=314, class=0, nrcpts=1, msgid=<200812090249.mB92ngmp009945@mysite.com>, relay=root@localhost
Dec 8 20:49:42 server postfix/smtpd: connect from mysite.com[127.0.0.1]
Dec 8 20:49:42 server postfix/smtpd: 4E9376581A4: client=mysite.com[127.0.0.1]
Dec 8 20:49:42 server postfix/cleanup: 4E9376581A4: message-id=<200812090249.mB92ngmp009945@mysite.com>
Dec 8 20:49:42 server postfix/qmgr: 4E9376581A4: from=<firstname.lastname@example.org>, size=863, nrcpt=1 (queue active)
Dec 8 20:49:42 server sendmail: mB92ngmp009945: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30314, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 4E9376581A4)
Dec 8 20:49:42 server postfix/smtpd: disconnect from mysite.com[127.0.0.1]
Dec 8 20:49:42 server postfix/local: 4E9376581A4: to=<email@example.com>, relay=local, delay=0.06, delays=0.05/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 8 20:49:42 server postfix/qmgr: 4E9376581A4: removed
I use postfix. , but I see some sendmail in there. Might that be the problem?
Actually, I don't think I see any mention of the test email that I sent. All emails seem to beto firstname.lastname@example.org, not email@example.com .. hmmm
PS: Thanks for your help.
Mmm, well, that's a little odd... so just to be sure -- you're certain you emailed the info@ address, and you don't see references to info@ in the logs anyone above or below the section you listed here?
What does this command show:
grep mailbox_command /etc/postfix/main.cf
On mine, I get this:
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
Yes, I'm sure I sent it to the correct address and the alias is correct. I even sent an email to firstname.lastname@example.org with no luck.
About the conf file, well, there isn't an uncommented line with such a statement.
I added the line, but used /usr/bin/procmail instead of procmail-wrapper since I couldn't find that file on my system, is that ok?
After restarting postfix, and trying again, I still do not receive an email, and no mention is in the maillog.
Mmm, well, the mailbox_command line in main.cf is part of what the Virtualmin installer sets up when doing an install.
That makes me wonder if perhaps you installed a different way, or maybe the installer didn't finish correctly.
Do you recall how you went about installing Virtualmin? Also, which Virtualmin version are you using, and what distro/version do you have?
I probably should have mentioned this earlier, I'm using the free version.
Apache/php/mysql/postfix/dovecot were first installed via yum.
Only then have I installed webmin via rpm and then added the virtualmin module.
I'm using centos 5.2
Is there anything else that should be in the config file or?
Aha! Well, using the GPL version there is fine, however, I think I understand where the issue is now.
There's actually quite a bit of work involved in setting up a fully functional Virtualmin system -- and it's all hidden from you by Joe's wonderful installer (the install.sh), available here:
Without that, there's going to be a few things that don't make it onto your system that should be there, and a few other things on your system that aren't tweaked quite right.
Is your setup live yet? Is there any chance you could start over and run the installer, which should fix all sorts of things and make life much easier?
Ok, I am now able to get an error back:
In my maillog:
Dec 11 20:04:20 server postfix/smtpd: connect from nelson.telenet-ops.be[195.130.xx.xx]
Dec 11 20:04:20 server postfix/smtpd: 70F166581AD: client=nelson.telenet-ops.be[195.130.xx.xx]
Dec 11 20:04:20 server postfix/cleanup: 70F166581AD: message-id=<9A545F72-69B0-4500-8E74-A3E672A2AE04@homeemail.be>
Dec 11 20:04:20 server postfix/qmgr: 70F166581AD: from=<email@example.com>, size=1063, nrcpt=1 (queue active)
Dec 11 20:04:20 server postfix/smtpd: disconnect from nelson.telenet-ops.be[220.127.116.11]
Dec 11 20:04:20 server postfix/local: 70F166581AD: to=<firstname.lastname@example.org>, orig_to=<email@example.com>, relay=local, delay=0.12, delays=0.11/0/0/0.01, dsn=5.2.0, status=bounced (can't create user output file. Command output: procmail: Couldn't create "/var/mail/domain" )
Dec 11 20:04:20 server postfix/cleanup: 8E5A26581B6: message-id=<20081212020420.8E5A26581B6@server.domain.com>
Dec 11 20:04:20 server postfix/qmgr: 8E5A26581B6: from=<>, size=3148, nrcpt=1 (queue active)
Dec 11 20:04:20 server postfix/bounce: 70F166581AD: sender non-delivery notification: 8E5A26581B6
Dec 11 20:04:20 server postfix/qmgr: 70F166581AD: removed
In return mail:
<firstname.lastname@example.org> (expanded from
<email@example.com>): can't create user output file. Command output:
procmail: Couldn't create "/var/mail/username"
Reporting-MTA: dns; server.domain.com
So, I checked /var/mail and indeed, there are no folders created for my users. Do you know what could have caused this?
Yeah, looks like it's trying to deliver to the wrong place. It should be trying to put that in $HOME, not /var/mail.
What does your /etc/procmailrc look like? And you still have main.cf setup to use procmail to deliver email, right?
In regards to your previous post -- somewhere along the way, Virtualmin makes modifications to Postfix's main.cf that you don't seem to have. I'm not sure where that's all setup though.
It also handles setting up Procmail, Dovecot, Spamassassin, ClamAV, the related CRON jobs, and the like.
Joe's been hard at work on an improved installer, and it probably wouldn't be hard to get it to handle configuration checks as you mentioned.
Unfortunately, it's not quite ready yet :-)
Anyhow, in your case, I suspect procmail isn't configured to deliver email to the user home directories.
Yes, I still have
mailbox_command = /usr/bin/procmail -o -a $DOMAIN -d $LOGNAME
virtual_alias_maps = hash:/etc/postfix/virtual
However, I don't see any /etc/procmailrc, that does not exist. What is that supposed to be? I do have
[root@server postfix]# locate procmail
That /etc/webmin/procmail/config has:
Never mind mate, got it working :)
Go to dovecot > mail files for anyone who has this issue and choose the right location there (and also choose a UIDL format)
Thanks for all your help :)
Thanks, everything is working now :)