Innovators in Mail server, Webmail and appliance solutions

 

January 30, 2006

 Error compiling Exim for @Mail

Question: When installing @Mail the Exim SMTP server fails compiling with the error message:

mysql.c:33:49: error: mysql.h: No such file or directory
mysql.c:41: error: syntax error before 'MYSQL'
mysql.c:41: warning: no semicolon at end of struct or union
mysql.c:42: warning: data definition has no type or storage class
mysql.c:44: error: syntax error before '*' token
mysql.c:44: warning: data definition has no type or storage class
mysql.c: In function 'mysql_tidy':
mysql.c:71: error: 'cn' undeclared (first use in this function)
mysql.c:71: error: (Each undeclared identifier is reported only once
mysql.c:71: error: for each function it appears in.)
mysql.c: In function 'perform_mysql_search':
mysql.c:108: error: 'MYSQL' undeclared (first use in this function)
mysql.c:108: error: 'mysql_handle' undeclared (first use in this function)
mysql.c:109: error: 'MYSQL_RES' undeclared (first use in this function)
mysql.c:109: error: 'mysql_result' undeclared (first use in this function)
mysql.c:110: error: 'MYSQL_ROW' undeclared (first use in this function)
mysql.c:110: error: syntax error before 'mysql_row_data'
mysql.c:111: error: 'MYSQL_FIELD' undeclared (first use in this function)
mysql.c:111: error: 'fields' undeclared (first use in this function)
mysql.c:119: error: 'cn' undeclared (first use in this function)
mysql.c:205: warning: comparison between pointer and integer
mysql.c:273: error: 'mysql_row_data' undeclared (first use in this function)

What is the solution to the compile error?

Answer: The mysql-devel package is missing from your system ( the libmysqlclient library and mysql header files )

As a solution:

1: Download the mysql-devel package from the mysql.com website, and install for your system

2: Or install the mysql-devel/libmysqlclient package for your Linux distro.


Filed under: Installation — Ben Duncan @ 12:49 am

 

January 25, 2006

 pop before send

The current policy of pop before send does not work very well. It only allows people to send email out an hour from the FIRST time they pop in. This can be fix tho with a simple change to the addrelay function in Log.pm.Change the following: (more...)


Filed under: Customization — info @ 4:31 pm

 

January 14, 2006

 Plesk Mailserver conflicting with @Mail

Question: I run the Plesk control-panel and use @Mail as a replacement email-server. However, at times when Plesk is updated or rebooted the Plesk mail-server starts, conflicting with @Mail. How do I fix?

Answer: Since the server-mode of @Mail has a custom copy of Exim, it needs to replace any existing mailservers.

If using Plesk or another mailserver first shutdown the other instance:

# killall -9 exim

Locate the binary for the Plesk Exim or other mailserver and:

chmod 000 /usr/sbin/exim

This will force the binary not to execute from any scripts/startup procedure.

Next, use the chattr command to "lock" the binary from been changed by any Plesk startup scripts:

chattr +i /usr/sbin/exim

Next, restart @Mail and the changes will be in effect, and the default Plesk mailserver will not conflict again.

/etc/init.d/atmailserver restart

Filed under: OS — Ben Duncan @ 3:49 am