Because I don't know what I'm doing, I created a 3rd domain to be like a site manager for the other virtual "services"; ruppssites.com. I thought that I needed one solid one in the Postfix files to allow the virtual ones mentioned above.
I have the ViMbAdmin running, and my Apache serves the site via https://email.ruppssites.com/ but it's with a cheap-skate self signed cert. (as I wrote that I thought I should get a LetsEncrypt one for it)
I used the ViMbAdmin interface to create a domain for my wnymathguy.com, and it is visible when I look at the vimbadmin database in table domain using phpMyAdmin. If I look at the domains list with the interface it's empty. Also, it didn't create a folder in the /srv/vmail/ directory as I expected it to.
I created a user with the ViMbAdmin interface and just like the domain, I can see the user in the vimbadmin database in table mailbox using phpMyAdmin. Similarly, it didn't create a folder in the /srv/vmail/ directory as I expected it to.
Shouldn't I see a folder "/srv/vmail/wnymathguy.com/someguy/"?
I tried sending a test mail into that account from an outside Gmail account and don't see it in the system's Read User Mail anywhere, even in the vmail account. I didn't get a bounce back error from Gmail yet though and it's been over an hour now.
I tried logging in with Thunderbird on a Ubuntu 17.04 Desktop a variety of ways with baleful results. I thought I made all the possible ways available; POP3, IMAP, SIEVE <-whatever that is.
Not sure what type of info anybody needs to diagnose this mess, so I'll upload info as it's requested.
Hi Michael,
I have done something similar on a Raspberry Pi running Debian
(Raspbian to be precise). I use it for secure mail and other
things. This tutorial [1] got me started. Certificates are
generated with Let's encrypt. Hope that helps.
Cheers,
Bernd
--
[1]
https://easyengine.io/tutorials/mail/server/postfix-dovecot-ubuntu/
--
--
--
ViMbAdmin :: Virtual Mailbox Administration :: https://github.com/opensolutions/ViMbAdmin
You received this message because you are subscribed to the Google
Groups "vimbadmin-discuss" group.
To post to this group, send email to vimbadmi...@googlegroups.com
To unsubscribe from this group, send email to
vimbadmin-disc...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vimbadmin-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "vimbadmin-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vimbadmin-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
uid=5000 gid=5000 home=
/var/vmail/%d/%uuid=2000 gid=2000 home=
/srv/vmail/%d/%n mysql:/etc/postfix/mysql/virtual_alias_maps.cf
" in my virtual_mailbox_domains
variable. I think that's a Webmin read/display error.
Here's some new error messages I'm gazing at:
Sep 27 02:48:51 RuppsSites postfix/postscreen[17572]: CONNECT from [52.236.89.232]:56829 to [192.168.1.228]:25
Sep 27 02:48:51 RuppsSites postfix/postscreen[17572]: PASS OLD [52.236.89.232]:56829
Sep 27 02:48:51 RuppsSites postfix/smtpd[17573]: connect from unknown[52.236.89.232]
Sep 27 02:48:51 RuppsSites postfix/smtpd[17573]: warning: SASL: Connect to private/auth failed: Permission denied
Sep 27 02:48:51 RuppsSites postfix/smtpd[17573]: fatal: no SASL authentication mechanisms
Sep 27 02:48:52 RuppsSites postfix/master[17219]: warning: process /usr/lib/postfix/sbin/smtpd pid 17573 exit status 1
Sep 27 02:48:52 RuppsSites postfix/master[17219]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
Sep 27 02:50:32 RuppsSites postfix/anvil[17576]: statistics: max connection rate 1/60s for (smtpd:52.236.89.232) at Sep 27 02:48:51
Sep 27 02:50:32 RuppsSites postfix/anvil[17576]: statistics: max connection count 1 for (smtpd:52.236.89.232) at Sep 27 02:48:51
Sep 27 02:50:32 RuppsSites postfix/anvil[17576]: statistics: max cache size 1 at Sep 27 02:48:51
Those came after trying to send a single message to 2 internal recipients and 1 external one. Before sending I manually made the directories and files that should be there for the mail to land.
virtual_alias_domains = example.com ...other hosted domains...
...from the Postfix Virtual Alias Server instructions was a real fly in the ointment. I put my main machine's FQDN in that variable, but I think it's supposed to be for any FQDN other than the name of the machine it's running on. When I moved it from that variable to the "mydestination = " variable errors I was getting yesterday went away.
Right now I'm receiving inbound mail in the Maildir/ format for my main FQDN and my Virtual Mailbox Server.
That idea of a Virtual Alias Server is when the machine is FQDN1 but you want to receive inbound email for FQDN2 AND the mailboxes for the FQDN2 are not virtual but instead their accounts for users on the system with normal Unix/Linux priveledges.
I had also erroneously put mailbox path statement entries in the hash:/etc/postfix/vmailbox (mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf) for my Alias Domain user accounts but shouldn't have had them in there. Clearing that and changing the "mydestination = " variable allowed internal mail to work right.
Next thing I have left to do is get outbound mail to work right. I think that problem is Verizon FiOS blocking port 25 traffic.
That sounds pretty good to me. I got desperate today and asked a CSE teacher (ironically via email) from UB that I had 17 years ago for help. Doubt he will answer, but I could trust him with my life. Just to be clear, I'm trying to do a few things at the same time, and I have no idea what parts of my plan conflict with others. Every time I think I know something, I discover it didn't solve any problems. It might be my age getting the better of my faculties.
I have 3 FQDN's, one is the actual hardware servers name, and I'm trying to make that a Virtual Alias Server. The other two I'm trying to make Virtual Mailbox Servers, but because one was set-up half a year ago with Google Apps for Business to take the email, I'm only doing Virtual Mailbox Server for the one that has never had email set-up (until it works right then I'll do both).I use Let's Encrypt for my https keys. I have the self-signed cert key's thing working too; that is the Webmin way on Ubuntu 16.04. I don't understand enough about how keys work and think I'm doing things right, but encryption is complicated and changing fast enough to make 75%+ the helpful internet posts be obsolete. I also think I know what I'm doing with my Custom Resource Records for smtp, spf, dmarc & dkim, but really, that could be fucked up too. Like my Alias server has a smtp.ALIASDOMAIN.com MX pointer to the same IP as the smtp.VIRTUALDOMAIN.com's MX pointer, so I have different self-signed keys for the two different canonical smtp names, and that feels wrong but I don't know what to do. I've tried so many things in Postfix and Dovecot to have a great key in the right places, but apart from the Diffie-Helman parameters, I don't trust anything I do. My attempts are all crap. One time I did something I saw in the Postfix literature where you cat a stack of certs into one file starting from the smtp public key to the self-signed cert to the domain's public cert, but even if that's the right thing to do, I may have done it wrong.I love the ViMbAdmin software and can see tweaking it to become more powerful for my situation. Like in the domain table for instance, have the transport field be one of {virtual, alias, transport} then in Postfix you can have:
In the splitting of Alias Domain from Virtual Mailbox, maybe this would help the permissions of writing to system users accounts instead of virtual users:
- virtual_alias_domains = mysql:/etc/postfix/mysql/virtual_aliasdomain_maps.cf
- query = SELECT domain FROM domain WHERE domain = '%d' AND transport = 'alias' AND backupmx = '0' AND active = '1'
- virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf
- query = SELECT domain FROM domain WHERE domain = '%d' AND transport = 'virtual' AND backupmx = '0' AND active = '1'
- transport_maps = proxy:mysql:/etc/postfix/mysql/virtual_transport_maps.cf
- query = SELECT domain FROM domain WHERE domain = '%d' AND transport = 'transport' AND backupmx = '0' AND active = '1'
- virtual_uid_maps = mysql:/etc/postfix/mysql/virtual_uid_maps.cf
- query = SELECT uid FROM mailbox WHERE username = '%s' AND active = '1'
- virtual_gid_maps = mysql:/etc/postfix/mysql/virtual_gid_maps.cf
- query = SELECT gid FROM mailbox WHERE username = '%s' AND active = '1'
- smtpd_sender_login_maps = mysql:/etc/postfix/mysql/controlled_envelope_senders.cf
- query = SELECT goto FROM alias WHERE address = '%s' AND active = '1'
Right now I have Postfix all set to hash: tables and the mysql: tables are just commented out as well as any settings for smtp & smtpd or links to Dovecot. Mailing inside the server one account to another doesn't even work though. Trying things three ways I get "dsn=5.1.1, status=bounced (User unknown in virtual alias table)" in the mail.log file. Two of the three ways is the virtual hash has the form [user@ALIASDOMAIN.com user] and the test email was done with and without the @ALIASDOMAIN.com in the to field. The third way was to have the virtual hash of the form [user@ALIASDOMAIN.com user@ALIASDOMAIN.com] and the test email was done with the @ALIASDOMAIN.com in the to field. When executing
postmap -q user@ALIASDOMAIN.com hash:/etc/postfix/virtual
> <mailto:vimbadmin-discuss+unsub...@googlegroups.com>.