Quantcast
Channel: iRedMail — iRedMail Support
Viewing all 12098 articles
Browse latest View live

Notify and Vacation emails are not DKIM signed

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7.x
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

My users wish to use filters to deliver vacation notifications, and new-email notifications to alternate addresses. 

Emails sent by users are properly signed with DKIM.  Emails auto-generated by the system for vacation and notify filters are not. 

Users configure the notify and vacation filters to send from their email address.

Can I sign those emails?  Should users send from a different address?  The default (when sending address is left blank in the filter) is root@host.domain.tld.  It is rejected due to our domain-level SPF (which is why they use their own emails as the sending address).

Thanks


Mail server stop delivering and receiving

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): v0.9.7 | iRedAdmin-Pro v2.7.0 (MySQL)
- Linux/BSD distribution name and version:  Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I just noticed my Mail server stop delivering and receiving. I don't even know which log file(s) to send.

Update from 0.9.6 to 0.9.7

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 / 0.9.7
- Linux/BSD distribution name and version: Centos 7.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- 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.
====

Hello,

today i went through the update procedure from here: https://docs.iredmail.org/upgrade.iredmail.0.9.6-0.9.7

I've seen several problems:

1) iredapd upgrade: see following log: got syntax ERROR (using version:  iRedAPD-2.1)

----
# bash upgrade_iredapd.sh
* Detected Linux/BSD distribution: RHEL
* Found iRedAPD directory: /opt/iredapd, symbol link of /opt/iRedAPD-2.0
* Found iRedAPD config file: /opt/iredapd/settings.py
CREATE INDEX
ERROR:  syntax error at or near "\"
LINE 11: \i /tmp/wblist_rdns.sql;
         ^
* Checking dependent Python modules:
  + [required] python-sqlalchemy
  + [required] dnspython
* Create directory /opt/iRedAPD-2.1.
* Copying new version to /opt/iRedAPD-2.1
* Copy old config file: settings.py (/opt/iredapd/settings.py -> /opt/iRedAPD-2.1/settings.py)
* Copy custom plugins: /opt/iRedAPD-2.0/plugins/custom_*.py.
* Set correct owner and permission for /opt/iRedAPD-2.1: root:root, 0500.
* Set permission for iRedAPD config file: /opt/iRedAPD-2.1/settings.py -> 0400.
* Re-create symbol link: /opt/iredapd -> /opt/iRedAPD-2.1
* Create symbol link: /opt/iredapd/rc_scripts/iredapd.service -> /etc/systemd/system/multi-user.target.wants//iredapd.service.
* Remove deprecated plugins.
* Rename old plugins.
* Remove all *.pyc files.
* Restarting iRedAPD service.
Redirecting to /bin/systemctl restart iredapd.service
* Upgrade completed.

----

What does the error mean, do i have to do something about it? iredapd service is up and running.

2) fail2ban:
0.9.7 changed the configuratiuon (more modular) and added/enabled nginx-auth jail. why isn't this documented in the update documentation at all?

3) freshclam
#UpdateLogFile ...          # <- Comment out this parameter
LogSyslog true              # <- Make sure you have this line. If not present, please add it manually.

0.9.6 version already had commented out #UpdateLogFile
and line
LogSyslog yes is already there

I assume true and yes are both o.k. here?

a manual freshclam run states that all Files are O.K.

4) The rest of the update procedure seems to have gone o.k.

Would be nice to get some feedback here,

Thanks,

Max

Amavis db connection error

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: ubuntu 16
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello everyone,
i have iredmail server with external mysql database.
everything works fine.
in postfix log (mail.log) i see that every couple of minutes i get this error:

amavis[25294]: (25294-13) NOTICE: reconnecting in response to: err=2013, HY000, DBD::mysql::st execute failed: Lost connection to MySQL server during query at (eval 99) line 172, <GEN36> line 24538.

please share with me the solution

Thank you very much!

Raz

A solution to ClamAV consuming too much memory

$
0
0

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8.7 Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- 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.
====

My other thread about ClamAV using too much memory (and bringing important parts of iRedMail down, like amavis) got closed, but I think I found a good, practical solution to the problem without increasing the server's memory, which I'd like to add here for anyone who's in the same situation as me. Please comment if I'm getting something wrong.

ClamAV can run as a daemon, which constantly needs about 500MB of RAM, but it can also run on-demand, via a command called clamscan. This is, by default, configured as a backup scanner in case the ClamAV daemon fails.

clamscan will, of course, also need about the same amount of memory, but not constantly, only when an email arrives. Also, reading from disk is much slower than from memory, but in the case that you only receive emails infrequently, clamscan means you only load the virus definitions in memory when needed, and the rest of the time that memory is free.

I wouldn't recommend this for servers that receive a lot of incoming email traffic. In that case, increasing memory is the only way to go.

This is how one uses clamscan as their primary virus scanner.


1. In /etc/amavis/conf.d/50-user, find the following:

@av_scanners = (
    #### http://www.clamav.net/
    ['ClamAV-clamd',
    \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
    qr/\bOK$/, qr/\bFOUND$/,
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

@av_scanners_backup = (
    ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
    ['ClamAV-clamscan', 'clamscan',
    "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

2. Comment out the ClamAV-clamd block, and copy the ClamAV-clamscan block from @av_scanners_backup into @av_scanners, like this:

@av_scanners = (
    #### http://www.clamav.net/
    #['ClamAV-clamd',
    #\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
    #qr/\bOK$/, qr/\bFOUND$/,
    #qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

    ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
    ['ClamAV-clamscan', 'clamscan',
    "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

@av_scanners_backup = (
    ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
    ['ClamAV-clamscan', 'clamscan',
    "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

3. Restart amavis like this:

service amavis restart

question about installation

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: ubuntu 16
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro?no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello
i have a question about iredmail isntallation
i have only one registered domain. for example =raz.com

i need to configure iredmail as mail server for this domain.
as i saw,its imposible to use the same hostname domain and the same email domain
i want to configure my iredmail server with ssl certificate so the hostname must have fqdn with raz.com
what should i do? please help

Thank you

raz

Error from delete_mailboxes.py

$
0
0

Hi-ho,

I've just started using iRedMail as replacement for manually configured cyrus/postfix mess and I've come up with an error Mr Google didn't find for me. :-)

I originally created a test domain (testmx.xxx.org.nz) and tested email against that to postmaster@testmx.xxx.org.nz and after a couple of days laster pointed pointed the MX for xxx.org.nz at the server.

When I deleted the postmaster@testmx.xxx.org.nz user and testmx.xxx.org.nz domain I selected the option to delete in 1 day.  (after I'd created another admin user on the root domain!)

Now I'm getting an email every hour from the cron job that calls delete_mailboxes.py.

Per:
------ Snip ------
* Delete old mailboxes (1 in total).
* <<< ERROR >>> Cannot convert timestamp in maildir path (/var/vmail/vmail1/testmx.xxx.org.nz/p/o/s/postmaster/), skip.
------ Snip ------

I'm very familiar Postfix but not dovecot so before I started poking around I thought I'd ask on the forums to see if this is an iredmail issue or something dovecot-ish.

Cheers, Chris H.

==== Required information ====
- iRedMail version: 0.9.7
- Linux/BSD distribution name and version:  Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No.
====

Can't change password though SOGo

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi;
My users can't change password using SOGo, even that they can with roundcube.
In SOGo, no error message is displayed when changing the password, but will not change and remain the same.
Kindly your help.
BR


Error in regex

$
0
0

Every day I am getting error messages in my postmaster mailbox with the following error:

Subject: Cron <amavis@mail>  test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-clean
Msg Body:
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/^(.{ <-- HERE ,200}).*$/ at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 923.


==== Required information ====
- iRedMail version: 0.9.7 MySQL Edition
- Linux/BSD distribution name and version: Linux mail 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

User based antispam via Dovecot and Spamassassian (update)

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: centOS 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): all
- Web server (Apache or Nginx): all
- Manage mail accounts with iRedAdmin-Pro?



Based on the post http://www.iredmail.org/forum/topic8169 … assin.html
I've an updated walk through. The former used dovecot-antispam plugin has been deprecated, this one is based on antiSpamWithSieve https://wiki2.dovecot.org/Plugins/Antispam.

Feel free to use it.



1. Mod, Add Dovecot Settings:
/etc/dovecot/dovecot.conf

protocol imap {
    mail_plugins = $mail_plugins imap_quota imap_acl imap_sieve
    ...
}
plugin {
   ...
    # Antispam
    sieve_plugins = sieve_imapsieve sieve_extprograms

    # From elsewhere to Spam folder
    imapsieve_mailbox1_name = Junk
    imapsieve_mailbox1_causes = COPY
    imapsieve_mailbox1_before = file:/var/vmail/sieve/report-spam.sieve

    # From Spam folder to elsewhere
    imapsieve_mailbox2_name = *
    imapsieve_mailbox2_from = Junk
    imapsieve_mailbox2_causes = COPY
    imapsieve_mailbox2_before = file:/var/vmail/sieve/report-ham.sieve

    sieve_pipe_bin_dir = /var/vmail/sieve
    sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment +vnd.dovecot.debug
}

2. create sieve scripts
/var/vmail/sieve/report-spam.sieve

require ["vnd.dovecot.debug", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];

debug_log "report_spam executed ${1}";

if environment :matches "imap.user" "*" {
  # to use a global user:
  #set "username" “amavis”;
  set "username" "${1}";
}

pipe :copy "sa-learn-spam.sh" [ "${username}" ];

/var/vmail/sieve/report-ham.sieve

require ["vnd.dovecot.debug", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];

debug_log "report_ham executed ${1}";

if environment :matches "imap.mailbox" "*" {
  set "mailbox" "${1}";
}

if string "${mailbox}" "Trash" {
  stop;
}

if environment :matches "imap.user" "*" {
  # to use a global user:
  #set "username" “amavis”;
  set "username" "${1}";
}

pipe :copy "sa-learn-ham.sh" [ "${username}" ];

3. Create sa-learn executables

/var/vmail/sieve/sa-learn-spam.sh

exec /usr/bin/sa-learn -u ${1} --spam

vi /var/vmail/sieve/sa-learn-ham.sh

exec /usr/bin/sa-learn -u ${1} --ham

4. Change permissions

chown vmail:vmail /var/vmail/sieve/report-*
chown vmail:vmail /var/vmail/sieve/sa-learn-*
chmod +x /var/vmail/sieve/report-*
chmod +x /var/vmail/sieve/sa-learn-*

----- old part -----


5. Edit the local.cf from spamassassin: (NOTICE: Write down the "Data you Setting for MYSQL connection")

use_bayes          1
bayes_auto_learn   1
bayes_auto_expire  1

# Store bayesian data in MySQL
bayes_store_module Mail::SpamAssassin::BayesStore::MySQL
bayes_sql_dsn      DBI:mysql:(db):(host):(port)

# Store bayesian data in MySQL
#bayes_store_module Mail::SpamAssassin::BayesStore::PgSQL
#bayes_sql_dsn      DBI:Pg:database:sql_server:sql_port
#
bayes_sql_username (user)
bayes_sql_password (password)
#
# Override the username used for storing
# data in the database. This could be used to group users together to
# share bayesian filter data. You can also use this config option to
# trick sa-learn to learn data as a specific user.
#
#bayes_sql_override_username vmail

Please change the Plaseholder in : (db), (host), (port), (user), (password)

6. create mysql user, db and scheme for spamassassin bayes

# cd /root/
# wget [url]http://svn.apache.org/repos/asf/spamassassin/tags/spamassassin_release_3_3_2/sql/bayes_mysql.sql[/url]

### NOTICE /root/bayes_mysql.sql must be modded TYPE => ENGINE for correct mysql syntax.


### CREATE DB for SA_BAYES AND IMPORT SCHEME.

# mysql -uroot -p
mysql> CREATE DATABASE sa_bayes;
mysql> USE sa_bayes;
mysql> SOURCE /root/bayes_mysql.sql;

### CREATE USER AND GIVE ACCESS (USERDATA NEEDED IN LOCAL.CF for SETTING UP SPAMASSASSIN)
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON sa_bayes.* TO sa_user@localhost IDENTIFIED BY 'sa_user_password';
mysql> FLUSH PRIVILEGES;
mysql> EXIT;

7. RESTART DOVECOT, AMAVIS(-NEW)

# systemctl restart  dovecot
# systemctl restart amavisd

8. Done.
Now all emails that are moved to the Junk folder, through IMAP will be pushed to sa-learn --spam. If you get a ham mail in Junk/Spam that is actually not spam, move it to another folder like Inbox and it will be learned as --ham.

-----

Optional:
If you like to push all marked spam mails to sa-learn too, you can modify the following

/var/vmail/sieve/dovecot.sieve

require ["fileinto", "vnd.dovecot.debug", "vnd.dovecot.pipe", "copy", "environment", "variables"];

# rule:[Move Spam to Junk Folder]
if header :is "X-Spam-Flag" "YES"
{
    fileinto "Junk";
    set "username" "amavis";
    pipe :copy "sa-learn-spam.sh" [ "${username}" ];
}

porting to slackware?

$
0
0

Hello,

I found this software and it made me super excited to find a nice solution for all of the email services I would like to be running on my server, alas, there is no support for slackware!

I currently run postfix and roundcube on my server, yet they kind of work and kind of don't. I'm not sure why things don't work correctly and I've never had the time to try any other solutions for using these softwares on my server. iRedMail provides all the things I wanted running on my machine.

How hard would it be to hack in support for slackware myself (not being a programmer personally)?

I'm familiar with many things in slackware but email support has always evaded me, I'd be personally interested in any tips that would help me possibly port this to the slackware distro and if possible to get any changes added back to the project if my endeavors would be successful.

Add warning to incoming email from external sources

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.7
- Linux/BSD distribution name and version: Debian 9
- 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.
====

Does anyone know of a way to insert a warning message into the body of the email for all email received from external mail servers, to the effect of "Warning, this email originated from outside of MY COMPANY'S network, please exercise caution when opening links".

This is mainly to help prevent spoofing when mails are sent from external addresses, pretending to be an internal user. I already have SPF and DKIM setup to prevent spoofing on the actual domain, but it doesn't stop emails coming from @comcast.net etc.

Thanks

Disable amavis/spamassasin for one user

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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.

Hello,
i just want create one account for catch SPAM, (example love_spam@example.com).
All messages should be delivered to this account.
How to disable all security function only for this account?

Thanks
kzx

Is this an error?

$
0
0

Hi all,

Been getting this email once a day, I don't normally pay attention to it, but I thought I should ask about it

Cron <root@mail> /bin/bash /var/vmail/backup/backup_mysql.sh
==> Backup completed successfully.
==> Detailed log (/var/vmail/backup/mysql/2017/11/15/2017-11-15-03-30-01.log):
=========================
* Starting backup: 2017-11-15-03-30-01.
* Backup directory: /var/vmail/backup/mysql/2017/11/15.
* Backing up databases: mysql vmail roundcubemail amavisd iredadmin sogo iredapd.
* File size:
----
8.0K    amavisd-2017-11-15-03-30-01.sql.bz2
4.0K    iredadmin-2017-11-15-03-30-01.sql.bz2
8.0K    iredapd-2017-11-15-03-30-01.sql.bz2
184K    mysql-2017-11-15-03-30-01.sql.bz2
1.4M    roundcubemail-2017-11-15-03-30-01.sql.bz2
4.0K    vmail-2017-11-15-03-30-01.sql.bz2
----
* Backup completed (Success? YES).
* Delete old backup: /var/vmail/backup/mysql/2017/08/17.
* Suppose to delete: /var/vmail/backup/mysql/2017/08/17

I also get a Logwatch email once a day, but I know that one is a status update one.

Regards

Fail connecting LDAP with Synology

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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.
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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.
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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.
====
Hi,

I am having a trouble trying to connect LDAP server to SYnology. I dont know which values on mapping should I use. Could anyone help me please?

Thanks

I attach a picture.


cachall issue - getting "user unknown" errors

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.8.5
- Linux/BSD distribution name and version: CentOS 6.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? YES

====

Hi

i've created a new domain, created a user account, and configured the catchall functionality to the newly created account.

If I now send to an email address which is not existing in this domain I'll get a "#< #5.1.1 x-unix; user unknown> #SMTP#" back.

So, what could be the problem?

Cheers,
Marcel

502 Bad Gateway

$
0
0

Ubuntu Server 17.10
iRedMail-0.9.7
Apache Web server
Mail stored in MySQL

Getting '502 Bad Gateway' when trying to access https:/server_ip/mail. Can access the admin panel fine, just not the mail. Tried on to different pc's with different DNS servers and get error everytime. Also tried different browsers etc and no luck.

Any ideas much appreciated.

domain with only alias - Reciepient address rejected User unknown

$
0
0

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When i add a new domain to catch some typo's i created 1 alias for that.

This should solve this. But when i Test it i get this message

Reciepient address rejected User unknown in virtual mailbox table

(work arround is to create 1 email addres) and set forwarding on for that address.

Remote server cannot deliver mail from locally existning domain

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MARIADB edition.
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Both domains: firstdomain.pl and seconddomain.pl exists in our iredmail system.
There are no users in firstdomain.pl, only aliases, forwarding emails to mail.firstdomain.pl.
smtp-proxy-1.mydomain.pl is our proxmox mail proxy .

user@firstdomain.pl tries to send an e-mail to szkolenia@seconddomain.pl and we get this in maillog:

[root@irm ~]# cat /var/log/maillog-20171112 | grep firstdomain | grep seconddomain
Nov 10 14:05:45 irm postfix/smtpd[17543]: NOQUEUE: reject: RCPT from smtp-proxy-1.mydomain.pl[111.111.14.66]: 554 5.7.1 <szkolenia@seconddomain.pl>: Recipient address rejected: Policy rejection not logged in; from=<user@firstdomain.pl> to=<szkolenia@seconddomain.pl> proto=ESMTP helo=<smtp-proxy-1.mydomain.pl>
Nov 10 14:42:06 irm postfix/smtpd[5549]: NOQUEUE: reject: RCPT from smtp-proxy-1.mydomain.pl[111.111.14.66]: 554 5.7.1 <szkolenia@seconddomain.pl>: Recipient address rejected: Policy rejection not logged in; from=<user2@firstdomain.pl> to=<szkolenia@seconddomain.pl> proto=ESMTP helo=<smtp-proxy-1.mydomain.pl>

and the sender gets :
554 5.7.1 <szkolenia@seconddomain.pl>: Recipient address rejected: Policy rejection not logged in

I suppose it's due iredapd reject_sender_login_mismatch, which i want to remain active.
How to workarount, to allow firstdomain.pl to deliver e-mails to another local domains?

DKIM signing works only from local Roundcube

$
0
0

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MARIADB edition.
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello.
I've implemented DKIM signing for two domains on my iredmail according to this: https://docs.iredmail.org/sign.dkim.sig … omain.html
, but it seems to work only when e-mail is sent from local roundcube;

Nov 14 11:45:11 irm postfix/submission/smtpd[18537]: 69539318B44E: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=user@domain1.tk
Nov 14 11:45:11 irm postfix/qmgr[19443]: 69539318B44E: from=<user@domain1.tk>, size=456, nrcpt=1 (queue active)
Nov 14 11:45:11 irm roundcube: <ts4pv4g8> User user@domain1.tk [217.168.143.150]; Message for web-sy7zd@mail-tester.com; 250: 2.0.0 Ok: queued as 69539318B44E
Nov 14 11:45:11 irm postfix/qmgr[19443]: 924F9318B44F: from=<user@domain1.tk>, size=1417, nrcpt=1 (queue active)
Nov 14 11:45:11 irm amavis[25854]: (25854-13) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [127.0.0.1]:45370 <user@domain1.tk> -> <web-sy7zd@mail-tester.com>, Queue-ID: 69539318B44E, Message-ID: <f30a121c00b4d5d6fa1b240f3433ea2f@domain1.tk>, mail_id: sNP3AkHdV_f3, Hits: -, size: 456, queued_as: 924F9318B44F, dkim_new=dkim:domain1.tk, 132 ms
Nov 14 14:15:30 irm postfix/submission/smtpd[6033]: 98432318B45A: client=150.143.168.217-rev.hti.pl[217.168.143.150], sasl_method=PLAIN, sasl_username=user@domain1.tk
Nov 14 14:15:30 irm postfix/qmgr[19443]: 98432318B45A: from=<user@domain1.tk>, size=2226, nrcpt=1 (queue active)
Nov 14 14:15:30 irm postfix/qmgr[19443]: BC11C318B460: from=<user@domain1.tk>, size=2613, nrcpt=1 (queue active)
Nov 14 14:15:30 irm amavis[5056]: (05056-09) Passed CLEAN {RelayedInbound}, [217.168.143.150]:44582 [217.168.143.150] <user@domain1.tk> -> <web-fwm4k@mail-tester.com>, Queue-ID: 98432318B45A, Message-ID: <a34e3ddb-12d6-5318-4f46-5df89bf21735@domain1.tk>, mail_id: aOv2DeWm1t79, Hits: -, size: 2226, queued_as: BC11C318B460, 148 ms
Nov 14 14:16:56 irm postfix/submission/smtpd[16850]: A2086318B458: client=150.143.168.217-rev.hti.pl[217.168.143.150], sasl_method=PLAIN, sasl_username=user@domain1.tk
Nov 14 14:16:56 irm postfix/qmgr[19443]: A2086318B458: from=<user@domain1.tk>, size=667, nrcpt=1 (queue active)
Nov 14 14:16:56 irm postfix/qmgr[19443]: BC657318B45A: from=<user@domain1.tk>, size=1054, nrcpt=1 (queue active)
Nov 14 14:16:56 irm amavis[4994]: (04994-19) Passed CLEAN {RelayedInbound}, [217.168.143.150]:44636 [217.168.143.150] <user@domain1.tk> -> <web-z1upi@mail-tester.com>, Queue-ID: A2086318B458, Message-ID: <c16de0ab-48a2-9878-3148-01a14e58028f@domain1.tk>, mail_id: W6tTiZKscdAq, Hits: -, size: 667, queued_as: BC657318B45A, 113 ms

Do you have an idea, why?

Viewing all 12098 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>