1

Topic: Error trying send mail from gmail to iredmail

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04.4 x64
- Related log if you're reporting an issue:

(/var/log/mail.log)

Jun 30 21:16:02 brasilmail postfix/anvil[4083]: statistics: max connection count 1 for (smtp:209.85.216.170) at Jun 30 21:12:40
Jun 30 21:16:02 brasilmail postfix/anvil[4083]: statistics: max cache size 1 at Jun 30 21:12:40
Jun 30 21:17:19 brasilmail postfix/smtpd[4442]: connect from mail-qg0-f54.google.com[209.85.192.54]
Jun 30 21:17:20 brasilmail postfix/trivial-rewrite[4445]: warning: do not list domain brasilmail.tk in BOTH mydestination and virtual_mailbox_domains
Jun 30 21:17:20 brasilmail postfix/smtpd[4442]: 235EA23CEE: client=mail-qg0-f54.google.com[209.85.192.54]
Jun 30 21:17:21 brasilmail postfix/cleanup[4450]: 235EA23CEE: message-id=<CAAgU6ur-tDntsvV2D8FRayzMnWczrxijWZJCZSWh9UUPp_sc3w@mail.gmail.com>
Jun 30 21:17:21 brasilmail postfix/qmgr[1827]: 235EA23CEE: from=<jacksonbenete@gmail.com>, size=2388, nrcpt=1 (queue active)
Jun 30 21:17:21 brasilmail postfix/smtp[4457]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jun 30 21:17:21 brasilmail postfix/smtp[4457]: 235EA23CEE: to=<contato@brasilmail.tk>, relay=none, delay=1.1, delays=1.1/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jun 30 21:17:21 brasilmail postfix/smtpd[4442]: disconnect from mail-qg0-f54.google.com[209.85.192.54]


====

Hello guys!

I'm trying to install a new iredmail server to delete the older and I get this message while I'm trying to send a mail with gmail to my account created in iredadmin.

Problems:
" warning: do not list domain brasilmail.tk in BOTH mydestination and virtual_mailbox_domains" ??????????
and
connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Thanks for help, I also want to know how the email message is stored in the server, is in mysql database or the message files are stored in a directory? Where can I find this directory? I want to backup all accounts and messages from the old iredmain installation to this new one.

Cheers!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Error trying send mail from gmail to iredmail

jacksonbenete wrote:

" warning: do not list domain brasilmail.tk in BOTH mydestination and virtual_mailbox_domains"

As mentioned in iRedMail installation wizard, you cannot use the same mail domain name as your mail server hostname. Please change the server hostname (and update Postfix parameter "myhostname").

jacksonbenete wrote:

connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd service is not running.

jacksonbenete wrote:

I also want to know how the email message is stored in the server, is in mysql database or the message files are stored in a directory? Where can I find this directory?

Stored in /var/vmail/ by default, not in SQL database.

3 (edited by jacksonbenete 2014-07-02 08:29:41)

Re: Error trying send mail from gmail to iredmail

EDIT: forget this post, in the next post I explain that the problem is due lack of memory.

Well,
I have changed the hostname and the files.
I have restarted the server.
I have checked amavis service, said amavis is not running.
I have tried to start amavisd and the system, said that the port are already in use.
I checked the port 10024, who are using the port? Amavis. ¬¬
ps -e and I have found five amavis process (not) running.
I have killed all amavis process. (MWHAHAHAHA ò.ó)
I have started amavis, works.
Try to send mail.
Server have said (log) that amavis[2705]: (02705-01) (!)ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd.socket: No such file or directory, retrying (2).
So I created the socket with "touch /tmp/clamd.socket" (I have found this procedure in arch linux wiki to create the clamd socket).
But this doesn't work. =/

Jul  1 19:57:32 brasilmail postfix/cleanup[2672]: E364E23CFE: message-id=<CAAgU6uomTqqN5OBrF=nxBqA3fPHgmcGgHuwO0yYhsRjfb84DZw@mail.gmail.com>
Jul  1 19:57:32 brasilmail postfix/qmgr[1697]: E364E23CFE: from=<jacksonbenete@gmail.com>, size=3653, nrcpt=1 (queue active)
Jul  1 19:57:32 brasilmail postfix/smtpd[2664]: disconnect from mail-qg0-f50.google.com[209.85.192.50]
Jul  1 19:57:34 brasilmail amavis[2705]: (02705-01) (!)ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd.socket: No such file or directory, retrying (2)
Jul  1 19:57:40 brasilmail amavis[2705]: (02705-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (Can't connect to UNIX socket /tmp/clamd.socket: No such file or directory) at (eval 102) line 375.\n
Jul  1 19:57:40 brasilmail amavis[2705]: (02705-01) (!!)WARN: all primary virus scanners failed, considering backups
Jul  1 19:57:43 brasilmail amavis[2705]: (02705-01) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan KILLED, signal 9 (0009) at (eval 102) line 596.
Jul  1 19:57:43 brasilmail amavis[2705]: (02705-01) (!!)TROUBLE in check_mail: virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED
Jul  1 19:57:43 brasilmail amavis[2705]: (02705-01) (!)PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20140701T195732-02705
Jul  1 19:57:43 brasilmail postfix/smtp[2678]: E364E23CFE: to=<contato@brasilmail.tk>, relay=127.0.0.1[127.0.0.1]:10024, delay=12, delays=1.1/0/0.01/10, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02705-01, virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED (in reply to end of DATA command))

I will try again tomorrow, if it simply doesn't work, I will try a new installation in a new ubuntu or centos.

4

Re: Error trying send mail from gmail to iredmail

I think the problem is lack of memory, now I remember that I have faced the same problem long ago.
I have uncomented the two lines change in "/etc/amavis/conf.d/15-content_filter_mode":

@bypass_virus_checks_maps = (
   \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);

The next step should disable clamav and restar amavis, but I can't disable clamav with /etc/init.d/clamd stop cause said "No such file or directory".

Soon I will try to increase the memory of the server but I can't do it now, so I only need to stop clamav and I think it will work fine, did you know how can I disable/stop clamav?

Also I don't know if the correct should be

@bypass_virus_checks_maps = (
   \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);

or

@bypass_virus_checks_maps = (1);

in "/etc/amavis/conf.d/15-content_filter_mode".