your provider blocked your IP for sending mails to gmail
Funny, this IP address belongs to google :-)
your provider blocked your IP for sending mails to gmail
Funny, this IP address belongs to google :-)
well, then just setup a relay for gmail, that's not a big deal
Ok wow that was an obnoxious response!
Ignoring Cthulhu rudeness, here's what to do for anyone else wanting some advice. This link here was quite useful -- freecodecamp . org/news/how-to-delete-a-row-in-sql-example-query/
(have to put spaces to allow it to post).
So first of all, start up mysql/mariadb:
-> sudo mysql -u root
Then you want to switch to the vmail database where the forwardings table lives -- forwardings is where the table that controls where mail is directed to lives.
-> USE vmail;
You'll get the prompt MariaDB [vmail]>
Then you want to show all the contents of the forwardings table with the following:
-> select * from forwardings;
This will spit out everything in the table. Every email address will be listed as it will have an entry to direct to itself.
So let's say you have an email address zebrinny@helping.com and currently delivering email to itself and to two addresses: iredmail@isgreat.com and mysql@isfun.com, and you only want to forward all email to mysql@isfun.com now.
In the output of the table, it might show the following:
id - address - forwarding -.... (a bunch more but that's okay for now)
3 - zebrinny@helping.com - zebrinny@helping.com
4 - zebrinny@helping.com - iredmail@isgreat.com
5 - zebrinny@helping.com - mysql@isfun.com
So to recap, id is just the id of the row, address is the email address on your system, forwarding is the email address it will forward emails to. Row ID 3 is making sure all emails sent to zebrinny@helping.com is actually being delivered to that inbox and row ids 4 and 5 are sending a copy to the other addresses.
To get what we want (which is all email sent to zebrinny@helping.com to go to mysql@isfun.com) we need to remove row 3 and 4.
To do that, and referring to the link at the top, we go:
-> DELETE FROM forwardings
WHERE id=3;
(yes there's a line break in-between, the command wont execute until you press enter after a semicolon)
If it worked, mariadb should come back with:
Query OK, 1 row affected (0.00 sec)
Then we want to do it again but for row 4:
-> DELETE FROM forwardings
WHERE id=4;
Again, if you did it right, it'll say:
Query OK, 1 row affected (0.00 sec)
And you're done!
Hit it with a:
-> select * from forwardings;
To check over the table again and make sure the offending records are gone, but you should be good!
If you've been editing users etc you want to FLUSH PRIVILEGES; also (Cant hurt anyway!) and then go EXIT;
Congrats!
Now there's probably a way to do both rows at once but I thought walking through slowly was the better option so there's no mistakes!
Hopefully this is helpful for someone else unsure of the right thing to do here!
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: CentOS 7.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
====
Greetings,
iRedmail hasn't been flagging spam messages for a long time and there are 1000s in iMap/Dovecot email folders.
I manually moved some messages in one account to a Junk folder for training and ran sa-learn spam to update the tags.
Now I need to run "some job" on the INBOXes of all user accounts where existing messages are analyzed, retagged and MOVED to a Junk folder so they can be reviewed and deleted.
I tried running `spamc -c < message` in the .Junk/cur folder and all of the messages report 0/0 even though I trained on them.
sa-learn --spam --username=vmail /var/mail/vmail1/my.tld/o/n/o/onno-2016.01.04.23.27.14/Maildir/.Junk/{cur,new}
cd /var/mail/vmail1/my.tld/o/n/o/onno-2016.01.04.23.27.14/Maildir/.Junk/cur
for i in *; do spamc -c < $i; done
all report 0/0
1. Why is spamc showing 0/0?
2. Once I get spamc to show them as spam (not 0/0) what command do I run to analyze INBOX/cur and re-flag each message analyzed as spam and then move those to JUNK/cur for verification and deletion?
Thanks!
first of all, you run a really really outdated version on a not supported system, it changed that spam tagging and sorting is done via amavis which invokes SA and with a sieve script
you should consider upgrading to a new system/version and then use imapcopy which should refilter the messages
did it download those files?
you said your webserver is lightspeed, so i assume it is not a fresh and clean system and it has other stuff on it installed, right?
Hi
Appreciate for reply
That was blocked by fierwall , the admin of sever fixed the issue and then I could installed the service.
Thanks
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version -> 1.3.2 OPENLDAP
- Deployed with iRedMail Easy
- Linux distribution -> Centos 8
- Store mail accounts in which backend -> LDAP from Active Directory
- Web server -> Nginx
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi everybody,
I have a problem with a single mailbox, whose Roundcube webmail prompts "Server error (error)" when using the search function.
The same does not happen if I log in to the same mailbox with an admin account.
The only error I could find is in /var/log/messages/ and is the following:
" 2022-07-27 11:02:11 39 [Warning] Aborted connection 39 to db: 'iredapd' user: 'iredapd' host: 'localhost' (Got an error reading communication packets)"
I tried adding the line "log_warnings = 1" in the MySQL config file and rebooting, but it didn't solve.
Any help appreciated
Thanks
When I try to get the DKIM keys, I get this:
root@mail:~# amavisd-new showkeys
Error in config file "/etc/amavis/conf.d/50-user": dkim_key: domain must not be empty: (,dkim,/var/lib/dkim/.pem) at /usr/sbin/amavisd-new line 627.
iRedmail Version: 1.6.0 MARIADB edition
OS: Debian 11
I believe mySQL
Nginx
Not using iRedAdmin-Pro yet, just started
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I would like to send some emails with a relay host, depending on the recipient email.
For example, every @hotmail.com or @outlook.com would go through smtp.provider.com, the rest can be send directly through iRedmail server.
Is it possible to do that?
Is it supported with the Pro version?
Thanks...
there is a guide in the doc for that
I appreciate your reply. That said, upgrading isn't something I can do currently and this functionality existed when this was a current version. So knowing how to do this on this version would be nice if anyone has the info.
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
iRedMail 1.6.0
Ubuntu 20.04
MySQL
NGINX
iRedAdmin-Free
Amazon Lightsail VPS with 4GB Ram hosting 3 domains, very few users, very little mail.
I have an iRedMail install on a fresh Ubuntu 20.04 VPS (Lightsail). I have redirected the web interface to default to sogo (changed index.html to reflect url=/sogo). More often than not, the SOGO website takes 15-30 seconds to load, and I can't figure out why the delay?
I'm wondering if these entries in the nginx error log could be indicative of the problem, or if I should be looking elsewhere?
2022/07/27 21:26:38 [error] 751#751: *123370 open() "/var/www/html/apple-touch-icon-precomposed.png" failed (2: No such file or directory), client: XX.XX.XX.XX, server: mail.threatmitigationpartners.com, request: "GET /apple-touch-icon-precomposed.png HTTP/2.0", host: "mail.threatmitigationpartners.com"
2022/07/27 21:26:38 [error] 751#751: *123370 open() "/var/www/html/apple-touch-icon.png" failed (2: No such file or directory), client: XX.XX.XX.XX, server: mail.threatmitigationpartners.com, request: "GET /apple-touch-icon.png HTTP/2.0", host: "mail.threatmitigationpartners.com"
2022/07/27 21:26:38 [error] 751#751: *123370 open() "/var/www/html/apple-touch-icon-precomposed.png" failed (2: No such file or directory), client: XX.XX.XX.XX, server: mail.threatmitigationpartners.com, request: "GET /apple-touch-icon-precomposed.png HTTP/2.0", host: "mail.threatmitigationpartners.com"
2022/07/27 21:26:38 [error] 751#751: *123370 open() "/var/www/html/apple-touch-icon.png" failed (2: No such file or directory), client: XX.XX.XX.XX, server: mail.threatmitigationpartners.com, request: "GET /apple-touch-icon.png HTTP/2.0", host: "mail.threatmitigationpartners.com"
Unsure if this could be an issues as well in the nginx access.log file.
The server is a few days old, and the access.log files are 166M and 188M, full of the following entrie (they appear to be never-ending):
24.227.212.242 - - [27/Jul/2022:21:45:00 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:00 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:00 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:00 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:01 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:01 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:01 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:02 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:02 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:02 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:02 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:03 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:03 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:03 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:03 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:04 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:04 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:04 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:04 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:05 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:05 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:06 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:06 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:06 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:07 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:07 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:07 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:07 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:08 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:08 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:08 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:09 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:09 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:10 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:10 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:10 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:10 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:11 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:11 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:11 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:11 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:11 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:11 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:12 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:12 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:13 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:13 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:13 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:13 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:14 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:14 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:14 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:14 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:14 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:15 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:15 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:16 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:16 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:16 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:16 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:16 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:16 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:17 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:17 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:17 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:17 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:17 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:18 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:18 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:18 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:18 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:19 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:19 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:19 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:20 +0000] "POST / HTTP/1.1" 301 162 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
24.227.212.242 - - [27/Jul/2022:21:45:20 +0000] "GET / HTTP/2.0" 200 77 "-" "AppleExchangeWebServices/818.120.2 ExchangeSync/2007.0.1"
Are you refering to "docs.iredmail.org/relayhost.html" and "docs.iredmail.org/per-account.transport.html" ?
If yes, then I dont want to do that. As far as I understand the doc, it uses a relay based on the iredmail sender email or the sender email domain. Unless I misunderstand or missed something.
For some accounts, I want to send emails to a specific relay based on the recipient domain outside of iRedmail. When a iredmail sender email account send an email to a gmail.com address, I want iredmail to relay through smtp.provider.A.com. When a iredmail sender email account send an email to an outlook.com address I want iredmail to relay though smtp.provider.B.com, and so on...
Thanks...
Hi,
I would say make sure you have the right privileges on your files and directories
-r-------- 1 amavis amavis 1675 Jun 24 15:27 /var/lib/dkim/yourdomain.com.pem
Also make sure /etc/amavis/conf.d/50-user is populated with the right info. See example below (replace yourdomain.com with your real domain name).
#
# DKIM
#
# Enable DKIM verification globally.
$enable_dkim_verification = 1;
# Disable DKIM signing globally, because it's controlled per policy bank.
#$enable_dkim_signing = 1;
# Add dkim_key here.
dkim_key('yourdomain.com', 'dkim', '/var/lib/dkim/yourdomain.com.pem');
@dkim_signature_options_bysender_maps = ({
# 'd' defaults to a domain of an author/sender address,
# 's' defaults to whatever selector is offered by a matching key
# Per-domain dkim key
"yourdomain.com" => { d => "yourdomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
# catch-all (one dkim key for all domains)
# '.' => {d => 'kaminoweb.com',
# a => 'rsa-sha256',
# c => 'relaxed/simple',
# ttl => 30*24*3600 },
});
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with:
wget github 1.6.0.tar.gz
- Linux/BSD distribution name and version:
Ubuntu 20.04 LTS
- Store mail accounts in which backend (MariaDB):
- Web server (Nginx):
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
relay=gmail-smtp-in.l.google.com[142.251.2.27]:25, delay=0.9, delays=0.01/0.01/0.29/0.59, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[142.251.2.27] said: 550-5.7.26 This message does not pass authentication checks>
DNS Setup:
MX = mydomain.com
MX = mail.mydomain.com
A = Domain IP
A = Mail IP server
TXT = "v=spf1 ip4:Domain IP include:mail.mydomain.com ~all"
HTTPS is setup via letsencrpt and resolves fine in web browers and via nslookup
host gmail-smtp-in.l.google.com[142.251.2.27] said:
550-5.7.26 This message does not pass authentication checks (SPF and DKIM
both 550-5.7.26 do not pass). SPF check for [aystayclean.com] does not pass
with ip: 550-5.7.26 [my IP].To best protect our users from spam, the
message has 550-5.7.26 been blocked. Please visit 550-5.7.26
support.google.com/mail/answer/81126#authentication for more 550
5.7.26 information. e3-20020a636903000000b003fdc8b4d872si21459625pgc.602 -
gsmtp (in reply to end of DATA command)
What am I missing? Is my TXT DNS Entry incorrect? or is it something else
well, then just setup a relay for gmail, that's not a big deal
it is in transport maps, so you can map a whole domain to an external relay
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
iRedMail 1.6.0 MARIADB edition.
Deployed with iRedMail downloadable installer
Debian 11 (v. 5.10.0-16-cloud-amd64 64)
Store mail accounts with MySQL backend
Web server Nginx
Manage mail accounts with iRedAdmin-Pro
iRedAPD-5.0.4
user test (postmaster@alleata.it) with vmail.mailbox.passwordlastchange = 2020-05-05 00:00:00
in file /opt/iredapd/settings.py there are this settings:
plugins = ['sql_force_change_password', "reject_null_sender", "wblist_rdns", "reject_sender_login_mismatch", "greylisting", "throttle", "amavisd_wblist", "sql_alias_access_policy"]
CHANGE_PASSWORD_MESSAGE = 'Password expired or never changed, please change your password in (url of my server)before sending email'
relevant logs:
Jul 28 11:04:46 iredmail iredapd SQL to get mailbox.passwordlastchange of sender (postmaster@alleata.it): SELECT passwordlastchange FROM mailbox WHERE username='postmaster@alleat
a.it' LIMIT 1
Jul 28 11:04:46 iredmail iredapd Returned SQL Record: (datetime.datetime(2020, 5, 5, 0, 0),)
Jul 28 11:04:46 iredmail iredapd Date of password last change: 2020-05-05 00:00:00
Jul 28 11:04:46 iredmail iredapd Sender didn't change password in last 90 days.
Jul 28 11:04:46 iredmail iredapd <-- Result: None
Jul 28 11:04:46 iredmail iredapd Unexpected error: AttributeError("'NoneType' object has no attribute 'startswith'"). Fallback to default action: DUNNO
Jul 28 11:04:46 iredmail iredapd Session ended.
any ideas?