1 (edited by propertunist 2012-10-19 05:27:30)

Topic: 1st time install - no mail is moving - assistance is appreciated.

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

greets to you!

i have been setting up iredmail on a new server for the first time and have so far:

installed iredadmin with mysql option - mysql and apache and phpmyadmin were already installed for my website anyway.
successfully logged in to iredadmin
created the domain in iredadmin for my site
created 2 email accounts for that domain
logged in to roundcube

i have not so far seen any emails move when i attempt to send them.
i do not have an SSL certificate setup yet, i was looking at using CAcert.org to create my own free certificate; however, they require me to have access to the email account for the site  (e.g. admin@mydomain.com) to allow me to create the certificate.

when i setup iredadmin i used the domain mail.mydomain.com, thinking that the domain i put in would be the one that is accessible to mail clients.. then realised that most likely i just needed to use mydomain.com; as yet i have not changed any settings in the mail apps relating to this. i created a virtualhost record in httpd.conf for mail.mydomain.com and pointed it to the iredadmin install folder.. which now i think maybe is not needed.

what i am encountering is that i am unable to connect to the server to send mail through it (thunderbird reports a server error) and when i send mails to it from hotmail they don't show up and i haven't yet seen any record of them in any logs.
the firewall ports are open.

i attempted to check smtp connection using telnet.. i see:

# telnet localhost smtp
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com ESMTP Postfix

edit: additionally the login details i entered, which work for iredadmin, do not work for awstats. (i reset the password for awstats, using: htpasswd -c  /etc/httpd/conf.d/awstats.passwd admin..) - still no access.

does anyone see any issues i am best served by exploring and maybe changing?

thanks

----

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

2

Re: 1st time install - no mail is moving - assistance is appreciated.

i notice the install notes say that the package is for a FRESH server setup.. does a page exist explaining how to resolve issues that may have arisen due to installing to a server that already has mysql and apache installed?

3

Re: 1st time install - no mail is moving - assistance is appreciated.

# telnet localhost smtp
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com ESMTP Postfix

Postfix is not running. Please check its log file (/var/log/maillog) to figure out why it doesn't work.

4

Re: 1st time install - no mail is moving - assistance is appreciated.

i notice that policyd database tables have been created with swedish collation instead of general utf8.. i have now changed it to utf8general using a script.

i came to policyd after noticing in the maillog file:

Oct 19 07:28:26 servername postfix/smtpd[22103]: warning: problem talking to server 127.0.0.1:7777: Connection refused

and reading this thread: http://www.iredmail.org/forum/topic3217 … fused.html

i am also seeing in the maillog file:

Oct 14 13:53:14 RGFQ0001 dovecot: master: Error: service(config): command startup failed, throttling
Oct 14 13:53:14 RGFQ0001 dovecot: master: Error: service(pop3-login): command startup failed, throttling
Oct 14 13:53:14 RGFQ0001 dovecot: config: Fatal: Error in configuration file /etc/dovecot/conf.d/10-auth.conf line 116: Unknown setting: mail_location:
Oct 14 13:53:14 RGFQ0001 dovecot: log: Error: service(pop3-login): child 12057 returned error 89 (Fatal failure)
Oct 14 13:53:14 RGFQ0001 dovecot: pop3-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: Connection reset by peer

-> when i examined the 10-auth.conf file i saw that line 116 is commented out and does not reference 'mail_location' so i'm not sure what the message is caused by or why there is confusion there.

..

when i examined the mysql tables further i saw that the postfix database is empty, no tables.

would re-running the iredmail setup with different options maybe resolve this?

thanks

5

Re: 1st time install - no mail is moving - assistance is appreciated.

My suggestions are:

- Re-install os and iRedMail if possible
- If you can re-install os, please answer my questions instead of keeping posting new issues

6

Re: 1st time install - no mail is moving - assistance is appreciated.

ok, i have run the uninstall script for iredmail and removed all webapps..
then ran installer for iredmail.

when i connect to the url for the webmail i see a database connection error.
when i connect to the url for iredadmin i see 'internal server error'.

looking through the SSL error log i see:

[Mon Oct 22 01:16:24 2012] [error]OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")

postfix is not running as before..

maillog contains:

2012-10-21 03:06:19    mydomain    postfix/trivial-rewrite[18900]    warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
2012-10-21 03:06:19    mydomain    postfix/smtpd[18898]    warning: connect to 127.0.0.1:7777: Connection refused
2012-10-21 03:06:19    mydomain    postfix/smtpd[18898]    warning: problem talking to server 127.0.0.1:7777: Connection refused
2012-10-21 03:06:20    mydomain    postfix/smtpd[18898]    warning: connect to 127.0.0.1:7777: Connection refused
2012-10-21 03:06:20    mydomain    postfix/smtpd[18898]    warning: problem talking to server 127.0.0.1:7777: Connection refused
2012-10-21 03:06:20    mydomain    postfix/smtpd[18898]    NOQUEUE: reject: RCPT from mydomain.com[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<root@mydomain.com> to=<root@mydomain.com> proto=ESMTP helo=<mydomain.com>
2012-10-21 03:06:20    mydomain    sendmail[18625]    q9L16CBs018625: to=root, ctladdr=root (0/0), delay=00:00:08, xdelay=00:00:01, mailer=relay, pri=35973, relay=[127.0.0.1] [127.0.0.1], dsn=4.3.5, stat=Deferred: 451 4.3.5 Server configuration problem
2012-10-21 03:06:20    mydomain    postfix/smtpd[18898]    warning: network_biopair_interop: error reading 5 bytes from the network: Connection reset by peer
2012-10-21 03:06:20    mydomain    postfix/smtpd[18898]    disconnect from mydomain.com[127.0.0.1]

i do not want to reinstall the os if i can avoid it.

7

Re: 1st time install - no mail is moving - assistance is appreciated.

one aspect of the installation that i did not fully comprehend is 'why does the installer ask for a different domain name to the hostname of the server'.. ?
this 2nd install attempt, i set the domain in the installer to my main domain name address (.com) and the hostname of the server to a secondary domain name address (.co.uk).

8

Re: 1st time install - no mail is moving - assistance is appreciated.

propertunist wrote:

ok, i have run the uninstall script for iredmail and removed all webapps..

It's better to re-install OS to get a clean, fresh operating system, then install iRedMail.

9

Re: 1st time install - no mail is moving - assistance is appreciated.

i have re-installed the OS and installed iRedMail fresh.

now i can access awstats and all apps.
i have created email accounts.

i am still not successful in sending and receiving emails via the apps.

i still see the same message when using telnet localhost smtp as i posted above. i examined the status of the postfix service and it is listed as enabled and running.

mysql is functional and my own website is running fine so php is also fine.

these are the types of lines i see in maillog:

postfix/smtpd[4348]: NOQUEUE: reject: RCPT from myserver.co.uk[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<me@myserver.com> to=<info@myserver.com> proto=ESMTP helo=<myserver.com>
Oct 22 05:36:27 servername roundcube: SMTP Error: SMTP error: Failed to add recipient 'info@myserver.com' in /var/www/roundcubemail-0.8.2/program/include/main.inc on line 1485 (POST /mail/?_unlock=loading1350876985978&_lang=undefined?_task=mail&_action=send)
Oct 22 05:36:27 servername postfix/smtpd[4348]: disconnect from myserver.co.uk[127.0.0.1]
Oct 22 05:36:42 servername postfix/smtpd[4348]: connect from myserver.co.uk[127.0.0.1]
Oct 22 05:36:42 servername postfix/smtpd[4348]: warning: connect to 127.0.0.1:7777: Connection refused
Oct 22 05:36:42 servername postfix/smtpd[4348]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Oct 22 05:36:43 servername postfix/smtpd[4348]: warning: connect to 127.0.0.1:7777: Connection refused
Oct 22 05:36:43 servername postfix/smtpd[4348]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Oct 22 05:36:43 servername postfix/smtpd[4348]: NOQUEUE: reject: RCPT from myserver.co.uk[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<me@myserver.com> to=<me@hotmail.com> proto=ESMTP helo=<myserver.com>
Oct 22 05:36:43 servername roundcube: SMTP Error: SMTP error: Failed to add recipient 'me@hotmail.com' in /var/www/roundcubemail-0.8.2/program/include/main.inc on line 1485 (POST /mail/?_unlock=loading1350877002160&_lang=undefined?_task=mail&_action=send)

10

Re: 1st time install - no mail is moving - assistance is appreciated.

Oct 22 05:36:42 servername postfix/smtpd[4348]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD service is not running. Please run it with below command:

# /etc/init.d/iredapd restart

11

Re: 1st time install - no mail is moving - assistance is appreciated.

thanks, that service was shown as running in the centos service panel.. and i activated it in the panel.. the mails still did not function..

then i ran the command line text you gave and now it is working.. i don't know why activating in the services panel made no difference.

so now i have some emails moving; thanks for the assistance. smile

12

Re: 1st time install - no mail is moving - assistance is appreciated.

so after some testing, i see that i can send mail internally from one of my accounts to others.. but mails sent externally do not reach their destination and mails sent from external servers do not reach my inboxes.

i am seeing in maillog:

2012-10-22 23:29:03    myserver postfix/smtpd[16009]    disconnect from unknown[65.54.190.77]
2012-10-22 23:30:26    myserver postfix/smtpd[16009]    connect from unknown[212.138.90.50]
2012-10-22 23:30:28    myserver     postfix/smtpd[16009]    warning: connect to 127.0.0.1:10031: Connection refused
2012-10-22 23:30:28    myserver     postfix/smtpd[16009]    warning: problem talking to server 127.0.0.1:10031: Connection refused
2012-10-22 23:30:29    myserver     postfix/smtpd[16009]    warning: connect to 127.0.0.1:10031: Connection refused
2012-10-22 23:30:29    myserver     postfix/smtpd[16009]    warning: problem talking to server 127.0.0.1:10031: Connection refused
2012-10-22 23:30:29    myserver     postfix/smtpd[16009]    NOQUEUE: reject: RCPT from unknown[212.138.90.50]: 451 4.3.5 Server configuration problem; from=<fbii_unit2012@live.com> to=<me@myserver.com> proto=ESMTP helo=<mail.taibahu.edu.sa>

i am still seeing the telnet error for smtp even though all services are running.. dovecot, postfix and iredapd are running and i have manually restarted them.

i've looked through the forums and seen some posts with others who are unable to send/receive externally; as yet i have not located a cause that fits my server's issues.

do you have any other ideas of what i might change here?
thanks again

13

Re: 1st time install - no mail is moving - assistance is appreciated.

propertunist wrote:

2012-10-22 23:30:28    myserver     postfix/smtpd[16009]    warning: connect to 127.0.0.1:10031: Connection refused

Policyd service is not running. Please execute below command to run it:

# /etc/init.d/policyd restart

14

Re: 1st time install - no mail is moving - assistance is appreciated.

ah thanks, i missed that one. wink
the mails are now moving from outside too. excellent.
thanks so much for assisting.