redmine email configuration with smtp - smtp

I installed Redmine 2.6.1.1 using Bitnami on Win 7, but couldn't figure out why redmine cannot send any email. I edited the configuration.yml file under \redmine-2.6.1-1\apps\redmine\htdocs\config and tried to send a test mail via both Gmail and our own e-mail server, but it didn't work.
My configuration.yml file is just like below:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: smtp.gmail.com
port: 587
domain: smtp.gmail.com
authentication: :plain
user_name: "someusername#gmail.com"
password: "somepassword"
In this configuration the error is:
an error occurred while sending mail (a socket operation was attempted to an unreachable network. - connect (2))
If I change the address and domain values with IP addresses then the error becomes:
an error occurred while sending mail (Permission denied - connect(2))
If I try to configure it with the values of our own mail server, then I still get the second error (permission denied).
I tried it in another PC and it worked. However, the same configuration in the old PC, it does not work. 2 PCs are in the same network and the only difference between 2 installations is that I did not configure mail settings during the Bitnami installtion in the old machine. After the installation was completed, I modified configuration.yml. However, in the new PC, I configured it during the installation.

I could solve the problem finally. The reason is McAfee security. When I disable McAfee's "Access Protection" task, it worked without any problem.

Related

Cannot_register user in ejabberd-21 (unknown virtual host)

I'my trying to simply register user using ejabberdctl:
ejabberdctl register admin 100.100.100.100 123456
and receive: unknown virtual host - same for every user.
Configuration:
ejabberd.yml:
hosts:
- "100.100.100.100"
auth_method:
-sql
-external
/etc/hosts
127.0.0.1 100.100.100.100
127.0.0.1 localhost
No errors in log files both in /opt/ejabberd/logs and /var/log/
No errors in debug mode.
ejabberd version - 21.07
I followed your configuration, with only this change (I don't have SQL or extauth configured):
auth_method:
- internal
And it works correctly:
ejabberdctl register admin 100.100.100.100 123456
User admin#100.100.100.100 successfully registered
Can you configure like I do, only internal, and check again?
If it works with internal, then enable only sql. Does it work?
If it works with sql, enable only external. Does it work?
If it works, then enable both sql and external as you desired. Does it work?
ejabberdctl register admin custom_hostname your_custom_password
it works and will create account like
hostname: admin#custom_hostname
password: your_custom_password

Zabbix Server Connection to Database failed (ERROR Z3001 [1045]

I got a Problem with my Zabbix Server.
He was running the days ago, and then the dashboard shows up:
Zabbix Server is running --> Value NO
And: Zabbix server is not running the information displayed may not be current
I didnt change some configs in the past.
Then I looked in the Zabbix Server Log File in: /var/log/zabbix/zabbix_server.log
And the Error shows up:
15909:20201011:000020.063 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'#'localhost' (using password: NO)
15909:20201011:000020.063 database is down: reconnecting in 10 seconds
I already checked the Zabbix Config File in: /etc/zabbix/zabbix_server.conf
DBName, DBUser, DBPassword are all correct
Can someone tell me why the Error shows "(using password: NO)"?
Usually it means that no password was entered for the login?
PROBLEM SOLVED
Solution: I was adding an HP Switch IN THE PAST with the HP Enterprise Switch Template.
When the SNMP Discover was finished, there wore more than 2000 Items.
So it was a Stackoverflow :D
Have a nice day!
Please ensure you have no spaces before or after the PASSWORD line, and that it matches exactly with the following 2 files:
nano /etc/zabbix/zabbix_server.conf
### Option: DBPassword
# Database password.
# Comment this line if no password is used.
#
# Mandatory: no
# Default:
DBPassword=Ex4mmpleT3st!
#
#
AND:
nano /etc/zabbix/web/zabbix.conf.php
$DB['PASSWORD'] = 'Ex4mmpleT3st!';
Verify by checking the RESTARTING and checking the log:
service zabbix-server restart
cat /var/log/zabbix/zabbix_server.log

Navicat - lost connection to mysql server at 'reading initial communication packet', system error: 0

I am getting the error listed above when trying to connect to my MySQL server via SSH public key in Navicat. I have searched endlessly trying to find a solution to this. I have made sure that the AllowTCP option is enabled, and I have tried setting the hostname to localhost and 127.0.0.1 but neither of them work, it only changes the error to Connection Refused.
Here are my connection properties:
(General Tab)
Hostname/IP Address: mydomain.com
Port: 3306
Username: myusername
Password: mypassword
(SSH Tab)
Hostname/IP Address: mydomain.com (have also tried localhost/127.0.0.1)
Port: 3850 (this is the correct port)
Username: myusername
Authentication Method: Public Key
Private Key: C:\Path\To\My\Key
Passphrase: mySSHpassword
I know that probably isn't much help because there's not really any "settings" other than the ports, which I know are correct.
I am running these exact same credentials on my Macbook which runs SequelPro and it works flawlessly, so I'm lost as to why I can't get it working on my PC through Navicat.
Thanks for any help you can provide.
The General tab would be set to localhost (or 127.0.0.1) and the username and password would be the database credentials, not the host credentials.
Then the SSH tab would be your host with the username password you use to ssh to the host. It should be the normal ssh port 22.
I was able to get my Navicat connected using SSH to my Rackspace MySql database from my OS X (MacBook).
The key was the settings in the General Tab. I had to set the HostName/IP to the remote name of the MySql Server.
[identifier-from-the-mysql-hostname-instance].rackspaceclouddb.com then the username and password as defined for my MySql database.
The SSH described in the prior responses, matched my settings.

Webmin port 25 is blocked

I have set up webmin on my CentOS server with a few domains. I have also added a test email account but cannot send any emails from my Outlook after configuring the settings for IMAP/STMP server. If I try and telnet to port 25, i get an error. Iptables isn't blocking port 25, postfix server is running and ISP isn't blocking any ports. I have also tried turning off iptables which made no difference.
Any ideas?

Failed to connect to mailserver at "localhost" port 25

I have a little problem.
When I click send on my contact form I get the following warning:
Warning: mail() [function.mail]:
Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
I use 64bit Win7, but I have no idea what should I set up to make this work.
In your php.ini file you can configure which mailserver to use:
[mail function]
SMTP = mymailserver.example.com
Alternatively you can install a local mailserver as described here: http://www.php.net/manual/en/ref.mail.php#77499