DevHeads.net

Postings by Dave

aquamail helo option

Hello,

Is anyone using Android's Aquamail to send mail through postfix? If
so, how do you have it configured?

My postfix is rejecting mail from Aquamail because it's helo is:

<[192.168.1.1]> basically it's internal ip.

I do not want to remove my restrictions can I get around this with a map?

Thanks.
Dave.

smtpd restrictions

Hello,

I'm running Postfix 3.3. I'm thinking I've got an issue with my smtpd*
restrictions, either doing double work or not ordered right, or just
not optimized.

automatic email account configuration, postfix pipelining restriction

Hello,

I'm atempting to configure email autoconfig and autodiscover services
for Mozilla and Microsoft clients. I'm using Postfix 3.3.

integrating p0f with postfix

Hello,

Does anyone have p0f going with postfix? I'm wanting to add a header
for email connecting OS.

Thanks.
Dave.

apache 2.4 email autoconfig and autodiscover configuration

Hello,

If anyone is using email autoconfig and/or email autodiscover with
apache 2.4 can you let me know? I'm trying to get it working, and the
xml files from what i'm researching on the net, look good. I'd like to
know your apache configuration?

Thanks.
Dave.

apache, git, and gitweb

Hello,

Does anyone have an apache 2.4 with git/gitweb setup going?

awstats removing script path and authentication check

Hello,

I've got two questions both about running awstats in a multiple domain
setup on apache 2.4.

I've got the below block in each of my ssl-enabled virtual hosts that
use awstats. Everything is working. First of all can I get a
confirmation that my authentication and authorization settings are
good?

Second, currently I have to:

domain.com/awstats/awstats.pl

which does work.

domain email autoconfiguration

Hello,

If anyone has autoconfiguration going with their email domain please
email me privately. I'd like to ask you some questions about your
setup. What do you use?

Thanks.
Dave.

processing cgi scripts

Hello,

Confusion, I am running Apache 2.4 and am being asked to process cgi
scripts in various languages.

apache 2.4 and automx configuration

Hello,

I'm trying to troubleshoot an automx error that it's giving me a 403
message, I'm using FreeBSD 11.1, and apache 2.4, and of course automx.
It's looking not like an automx-specific issue, but an apache-specific
issue.

http2

Hello,

Currently I'm running Apache 2.4, openssl, Php 5.6, mod_php, and with
apache the prefork mpm. my mpm from prefork to either worker or event.
What is the difference between these two mpms? It appears i'm also
going to have to make a php change, threaded php, should I move to
php7, does that have the option needed?

Thanks.
Dave.

I am wanting to implement http2.

automx, mysql, apache, freebsd

Hello,

Has anyone got automx going with a virtual mail setup I'm running
FreeBSD with Postfix/MySQL/Dovecot, but Linux would work as well, and
apache 2.4 which currently is the problem.

I'm trying to run automx-test <a href="mailto: ... at example dot com"> ... at example dot com</a>

and am getting an error 404 from apache, it can't find an xml file,
I'm not sure what it's looking for /mail/config-1.1.xml which I do not
know what it is.

If anyone has automx going please let me know.

Thanks.
Dave.

apache 2.4 and mod_perl2

Hello,

I'm trying to get apache 2.4 and mod_perl2 in my case 2.0.10 going on
a FreeBSD 11.1 system.

I've got this in a virtual host section:

#
# mod perl per-directory configuration
#

# Required modules: dir_module, perl_module
<IfModule dir_module>
<IfModule perl_module>
DirectoryIndex index.pl
</IfModule>
</IfModule>

Alias "/perlweb/" "/usr/local/www/perlweb/"
<Location "/perlweb/">
AddHandler perl-script .pl
AddHandler perl-script .cgi
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Require a

SSL cipher suites

Hello,

I'm looking for recommendations. I'm running apache 2.4 and Openssl
1.0.2n.

rewrite not working, still going https

Hello,

I'm trying to get apache 2.4 not to rewrite urls with
.well-known/acme-challenge in them. I do not want these urls
redirected to https but all other urls to do so.

aquamail connecting to postfix

Hello,

Does anyone have Android's aquamail app successfully connecting to a
Postfix server? If so, w hat settings did you use? I keep getting an
authentication denied error. I've tried for authentication choose
automatically, sasl plain, sasl login. For server security I've tried
ssl strict check, ssl accept any (both on port 465), and starttls
strict check and starttls accept any (port 587).

Thanks.
Dave.

apache 2.4 and python

Hello,

I'm trying to get mod python 3.5 working with apache 2.4. I keep
getting an error on the PythonHandler line. I've got python 3.5
installed, and mod_python 3.5 with apache 2.4, they are not talking to
each other.

Any ideas?

Thanks.
Dave.

apache 2.4, git smart http, and gitweb configuration

Hello,

I'm trying to host a git repository via smart http on apache 2.4. I'm
also trying to make it viewable using gitweb. The goal is for all
transactions to happen over https so I've got a letsencrypt
certificate. Both reading and writing to the repo on the server should
prompt for a password.

virtual host gives unexpected network read error

Hello,

Can someone take a look at the below virtual host configuration?
Whenever I put it in my apache 2.4 the server returns an alert
unexpected network read error connection aborted message. If I take it
out the server behaves normally. Of course nothing is in any of the
logs I've got LogLevel set to warn.

difference in alias lines?

Hello,

What is the difference between the two below alias lines?

Alias /.well-known/acme-challenge/ /usr/local/www/.well-known/
Alias /.well-known/acme-challenge "/usr/local/www/.well-known/"

Thanks.
Dave.

disk cache block on a vps?

Hello,

I've got an apache 2.4 system running on a vps. Is the below block
needed? Currently it is set in all virtual hosts, if it is needed can
it be set globally? If options are not needed let me know.

issue with apache and virtual hosts and acme-client letsencrypt certificates

Hello,

I'm running a FreeBSD system that I'm running apache on and using that
to validate and put in to place letsencrypt certificates for several
domains.

I thought I had auto-updating working, turns out I didn't, but also
I've got a configuration problem with apache that is preventing
certificate validation.

If I use:

acme-client -v -C /usr/local/www/.well-known/acme-challenge -mbnN
domain.com webmail.domain.com

/usr/local/www/.well-known/acme-challenge is where challenges are
stored, the validation works only if I have this line commented out:

Redirect / <a href="https://www.domain.com/" title="https://www.domain.com/">https://www.domain.com/</a>

if t

virtual host double slash effect, need solution

Hello,

I'm running Apache 2.4 on a FreeBSD 10.3 system, with several virtual
hosts. My goal is to have all of them completely ssl, except for the
.well-known area needed for letsencrypt.

I'm getting a double slash effect,

for example example.com//

and similar for other virtual hosts.

disk cache setup

Hello,

Wondering about disk cache setup?

redirect vs. rewrite

Hello,
I'm using apache 2.4. What is the difference between these lines?

Redirect permanent / <a href="http://www.domain.com" title="http://www.domain.com">http://www.domain.com</a>
RewriteRule ^/?(.*) http://www.domain.com/$1 [R,L]

They both redirect.

Thanks.
Dave.

Apache 2.4 and letsencrypt challenge setup issue?

Hello,

I'm trying to get letsencrypt certificates working with
security/acme-client on FreeBSD 10.3, which I like much better than
the python certbot client.

That being said I'm having a problem where authentication is failing,
account keys are created, and from the output below it looks like the
tokens are being successfully generated, not retrieved.

New 2.4 configuration, need sanity and security check

Hello,

I'm doing a config rewrite. I'm using apache 2.4. If someone who does
security could give my setup a check from a security perspective i'd
appreciate it.

I'm also wondering in particular about my cache setup and virtual
hosts.

virtual transport lmtp vs. dovecot lda?

Hello,

I'm running a Postfix 3.1 setup with Dovecot 2.29 and Mysql 5.7. I am
trying to track down an elusive problem. Previously I had my
virtual_transport set to dovecot with a dovecot service in master.cf.
I then enabled the lmtp service which uses a socket
/var/spool/postfix/private/dovecot-lmtp

I keep getting the error in the logs to many connections to the mysql
database and stuff is deferred.

Any ideas?

Thanks.
Dave.

Apache 2.4 with Mysql authentication

Hello,

I've got a Mysql database set up for user authentication, with fields
username, password, group, and active. I've got a group testgroup that
i've put users in.

Re: Can not add foreign key constraint

Hello,

Here's the create table sand error message.

root@localhost [(none)]> use mail;
Database changed
root@localhost [mail]> CREATE TABLE IF NOT EXISTS `lastauth` (
-> `user` varchar(40) NOT NULL,
-> `remote_ip` varchar(18) NOT NULL,
-> `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON
UPDATE CURRENT_TIMESTAMP,
-> PRIMARY KEY (`user`),
-> FOREIGN KEY (user) REFERENCES virtual_users(user) ON DELETE CASCADE
-> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ERROR 1215 (HY000): Cannot add foreign key constraint

For the table it's referencing