-
-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
Behaviour
Getting 500s when trying to create aliases.
Steps to reproduce this issue
Try the configs below? I've been able to add and verify domains, create usernames, create another user, edit settings, etc. Only thing I've found that's not working so far is creating aliases - seems to be failing both when I attempt to create both via the interface (with any params) and via sending emails to addresses that I'd like to use as aliases.
Expected behaviour
Creates an alias
Actual behaviour
500s without creating an alias
Configuration
- Docker version (type
docker --version) :Docker version 20.10.12, build e91ed57 - Docker compose version if applicable (type
docker-compose --version) :docker-compose version 1.29.2, build 5becea4c - Platform (Debian 9, Ubuntu 18.04, ...) :
Ubuntu 21.04 - System info (type
uname -a) :Linux 1312 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux - Include all necessary configuration files :
docker-compose.yml,.env, ...
anonaddy.yml:
TZ=America/New_York
PUID=1000
PGID=1000
MEMORY_LIMIT=256M
UPLOAD_MAX_SIZE=64M
OPCACHE_MEM_SIZE=128
REAL_IP_FROM=0.0.0.0/32
REAL_IP_HEADER=X-Forwarded-For
LOG_IP_VAR=remote_addr
APP_KEY=base64:{{ SECRET SHH }}
APP_DEBUG=true
APP_URL=https://mail.{{ MY DOMAIN }}
ANONADDY_ADMIN_USERNAME={{ MY USER }}
ANONADDY_ENABLE_REGISTRATION=false
ANONADDY_DOMAIN={{ MY DOMAIN }}
ANONADDY_ALL_DOMAINS={{ MY DOMAIN }}
ANONADDY_HOSTNAME={{ MY FQDN }}
ANONADDY_DNS_RESOLVER=127.0.0.1
ANONADDY_SECRET={{ SECRET SHH }}
ANONADDY_LIMIT=200
ANONADDY_BANDWIDTH_LIMIT=2097152000
ANONADDY_NEW_ALIAS_LIMIT=20
ANONADDY_ADDITIONAL_USERNAME_LIMIT=500
MAIL_FROM_NAME=LinAnon
MAIL_FROM_ADDRESS=mailbot@{{ MY DOMAIN }}
POSTFIX_DEBUG=false
POSTFIX_SMTPD_TLS=false
POSTFIX_SMTP_TLS=false
DKIM_ENABLE=true
DMARC_ENABLE=true
Docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
scan: Docker Scan (Docker Inc., v0.12.0)
Server:
Containers: 7
Running: 6
Paused: 0
Stopped: 1
Images: 7
Server Version: 20.10.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.11.0-49-generic
Operating System: Ubuntu 21.04
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.932GiB
Name: 1312
ID: 4NAI:ACHY:IE62:24KR:YSD4:FL7W:J7WZ:BIEB:OMAW:S2OL:SBJX:CFI5
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Logs
anonaddy | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
anonaddy | [s6-init] ensuring user provided files have correct perms...exited 0.
anonaddy | [fix-attrs.d] applying ownership & permissions fixes...
anonaddy | [fix-attrs.d] done.
anonaddy | [cont-init.d] executing container initialization scripts...
anonaddy | [cont-init.d] 00-env: executing...
anonaddy | [cont-init.d] 00-env: exited 0.
anonaddy | [cont-init.d] 00-fix-logs.sh: executing...
anonaddy | [cont-init.d] 00-fix-logs.sh: exited 0.
anonaddy | [cont-init.d] 01-fix-uidgid.sh: executing...
anonaddy | [cont-init.d] 01-fix-uidgid.sh: exited 0.
anonaddy | [cont-init.d] 02-fix-perms.sh: executing...
anonaddy | Fixing perms...
anonaddy | [cont-init.d] 02-fix-perms.sh: exited 0.
anonaddy | [cont-init.d] 10-config.sh: executing...
anonaddy | Setting timezone to America/New_York...
anonaddy | Initializing files and folders
anonaddy | Checking database connection...
anonaddy | Waiting 60s for database to be ready...
anonaddy | Database ready!
anonaddy | [cont-init.d] 10-config.sh: exited 0.
anonaddy | [cont-init.d] 11-config-php.sh: executing...
anonaddy | Init PHP extensions
anonaddy | Setting PHP-FPM configuration
anonaddy | Setting PHP INI configuration
anonaddy | Setting OpCache configuration
anonaddy | [cont-init.d] 11-config-php.sh: exited 0.
anonaddy | [cont-init.d] 12-config-nginx.sh: executing...
anonaddy | Setting Nginx configuration
anonaddy | [cont-init.d] 12-config-nginx.sh: exited 0.
anonaddy | [cont-init.d] 13-config-anonaddy.sh: executing...
anonaddy | Creating AnonAddy env file
anonaddy | Trust all proxies
anonaddy | Copied File [/vendor/fideloper/proxy/config/trustedproxy.php] To [/config/trustedproxy.php]
anonaddy | Publishing complete.
anonaddy | [cont-init.d] 13-config-anonaddy.sh: exited 0.
anonaddy | [cont-init.d] 14-config-rspamd.sh: executing...
anonaddy | INFO: Rspamd service disabled.
anonaddy | [cont-init.d] 14-config-rspamd.sh: exited 0.
anonaddy | [cont-init.d] 15-config-opendkim.sh: executing...
anonaddy | Copying OpenDKIM private key
anonaddy | Setting OpenDKIM configuration
anonaddy | Setting OpenDKIM trusted hosts
anonaddy | Setting OpenDKIM signing table
anonaddy | Setting OpenDKIM key table
anonaddy | [cont-init.d] 15-config-opendkim.sh: exited 0.
anonaddy | [cont-init.d] 16-config-opendmarc.sh: executing...
anonaddy | Setting OpenDMARC configuration
anonaddy | [cont-init.d] 16-config-opendmarc.sh: exited 0.
anonaddy | [cont-init.d] 17-config-postfix.sh: executing...
anonaddy | Setting Postfix master configuration
anonaddy | Setting Postfix main configuration
anonaddy | Setting Postfix milter configuration
anonaddy | Creating Postfix virtual alias domains and subdomains configuration
anonaddy | Creating Postfix recipient access configuration
anonaddy | Checking Postfix hostname
anonaddy | myhostname = 1312.acab.casa
anonaddy | Creating check_access stored procedure
anonaddy | [cont-init.d] 17-config-postfix.sh: exited 0.
anonaddy | [cont-init.d] 50-svc-main.sh: executing...
anonaddy | DB migration
anonaddy | Nothing to migrate.
anonaddy | Clear cache
anonaddy | Application cache cleared!
anonaddy | Configuration cache cleared!
anonaddy | Configuration cached successfully!
anonaddy | Compiled views cleared!
anonaddy | Blade templates cached successfully!
anonaddy | Route cache cleared!
anonaddy | Routes cached successfully!
anonaddy | Broadcasting queue restart signal.
anonaddy | [cont-init.d] 50-svc-main.sh: exited 0.
anonaddy | [cont-init.d] 60-svc-opendkim.sh: executing...
anonaddy | [cont-init.d] 60-svc-opendkim.sh: exited 0.
anonaddy | [cont-init.d] 61-svc-opendmarc.sh: executing...
anonaddy | [cont-init.d] 61-svc-opendmarc.sh: exited 0.
anonaddy | [cont-init.d] 62-svc-rspamd.sh: executing...
anonaddy | INFO: Rspamd service disabled.
anonaddy | [cont-init.d] 62-svc-rspamd.sh: exited 0.
anonaddy | [cont-init.d] 63-svc-postfix.sh: executing...
anonaddy | [cont-init.d] 63-svc-postfix.sh: exited 0.
anonaddy | [cont-init.d] 80-svc-cron.sh: executing...
anonaddy | Fixing crontabs permissions...
anonaddy | [cont-init.d] 80-svc-cron.sh: exited 0.
anonaddy | [cont-init.d] 99-clean.sh: executing...
anonaddy | [cont-init.d] 99-clean.sh: exited 0.
anonaddy | [cont-init.d] ~-socklog: executing...
anonaddy | [cont-init.d] ~-socklog: exited 0.
anonaddy | [cont-init.d] done.
anonaddy | [services.d] starting services
anonaddy | Feb 05 02:36:25 1312 postfix[831]: Postfix is running with backwards-compatible default settings
anonaddy | Feb 05 02:36:25 1312 postfix[831]: See http://www.postfix.org/COMPATIBILITY_README.html for details
anonaddy | Feb 05 02:36:25 1312 postfix[831]: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
anonaddy | crond: crond (busybox 1.34.1) started, log level 8
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: using the "epoll" event method
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: nginx/1.20.2
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: OS: Linux 5.11.0-49-generic
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: getrlimit(RLIMIT_NOFILE): 1048576:1048576
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: start worker processes
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: start worker process 869
anonaddy | 2022/02/05 02:36:25 [notice] 835#835: start worker process 870
anonaddy | [services.d] done.
anonaddy | [05-Feb-2022 02:36:25] NOTICE: fpm is running, pid 849
anonaddy | [05-Feb-2022 02:36:25] NOTICE: ready to handle connections
anonaddy | mail.info: Feb 5 07:36:25 opendkim[838]: OpenDKIM Filter v2.11.0 starting (args: -f -u opendkim -x /etc/opendkim/opendkim.conf)
anonaddy | mail.info: Feb 5 07:36:25 opendmarc[833]: OpenDMARC Filter v1.4.1 starting (args: -f -u opendmarc -c /etc/opendmarc/opendmarc.conf)
anonaddy | mail.info: Feb 5 07:36:25 opendmarc[833]: additional trusted authentication services: {{ HOST NAME }}
anonaddy | Feb 05 02:36:25 1312 postfix/postfix-script[1029]: starting the Postfix mail system
anonaddy | Feb 05 02:36:25 1312 postfix/master[1030]: daemon started -- version 3.6.4, configuration /etc/postfix
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:46 -0500] "GET / HTTP/1.1" 302 370 "https://{{ MY DOMAIN }}/usernames" "{{ USER AGENT INFO }}"
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:46 -0500] "GET /login HTTP/1.1" 200 1382 "https://{{ MY DOMAIN }}/usernames" "{{ USER AGENT INFO }}"
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:50 -0500] "POST /login HTTP/1.1" 302 346 "https://{{ MY DOMAIN }}/login" "{{ USER AGENT INFO }}"
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:50 -0500] "GET / HTTP/1.1" 200 1780 "https://{{ MY DOMAIN }}/login" "{{ USER AGENT INFO }}"
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:53 -0500] "GET /usernames HTTP/1.1" 200 1973 "https://{{ MY DOMAIN }}/" "{{ USER AGENT INFO }}"
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:55 -0500] "GET /domains HTTP/1.1" 200 1987 "https://{{ MY DOMAIN }}/usernames" "{{ USER AGENT INFO }}"
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:36:56 -0500] "GET / HTTP/1.1" 200 1780 "https://{{ MY DOMAIN }}/domains" "{{ USER AGENT INFO }}"
anonaddy | crond: USER anonaddy pid 1034 cmd php /var/www/anonaddy/artisan schedule:run --no-ansi --no-interaction --quiet
anonaddy | 172.70.130.158 - - [05/Feb/2022:02:37:07 -0500] "POST /api/v1/aliases HTTP/1.1" 500 15301 "https://{{ MY DOMAIN }}/" "{{ USER AGENT INFO }}"
Metadata
Metadata
Assignees
Labels
No labels