After installation on all distros I tried, sendmail was not working.

During the Barracuda install process, I got this error on both Ubuntu 10.10, Ubuntu 11.04 and Debian 6.0

"postdrop: warning: unable to look up public/pickup: No such file or directory." These were all minimal installs but happened to already have sendmail installed.

Stopping sendmail, making the directory and restarting postfix resolves this, replace #### with the pid you want to kill. Not sure if you care to include checking if sendmail is installed and creating the dir, but I hope it helps someone else.

mkfifo /var/spool/postfix/public/pickup
ps aux | grep mail
kill #### 
sudo /etc/init.d/postfix restart

After doing this, my inbox was flooded with emails :P

Comments

KrisBulman’s picture

Status: Active » Closed (works as designed)

since this script is recommended to be run on a pure vanilla install, it obviously assumes sendmail is not installed.

omega8cc’s picture

This should work anyway, since mailserver is (or at least should be) included in the minimal install. However, the popular choice these days is Exim, not Sendmail, and standard apt-get install postfix handles removing Exim just fine. It seems it must be something non-standard if Sendmail is not removed automatically on Postfix install. You could watch the behind-the-scenes install log while running Barracuda install to see more debug output: tail -f /opt/tmp/aegir-install.log.

omega8cc’s picture

Status: Closed (works as designed) » Needs work
omega8cc’s picture

Status: Needs work » Fixed
attiks’s picture

Status: Fixed » Needs work

I tried a fresh install using boa in-head public sub.attiks.com attiks@xxx.com [Off-topic, nice work on the new installer] and I got the same problem:

WD mail: Error sending e-mail (from webmaster@master.sub.attiks.com to attiks@sub.com).                [error]
Unable to send e-mail. Please contact the site administrator if the problem persists.                     [error]

The result is that no site is created

root@sub:~# find / attiks.com | grep attiks.com
/var/aegir/hostmaster-HEAD/sites/master.sub.attiks.com
/var/aegir/hostmaster-HEAD/sites/master.sub.attiks.com/settings.php
/var/aegir/hostmaster-HEAD/sites/master.sub.attiks.com/local.settings.php
/var/aegir/config/server_master/nginx/vhost.d/chive.master.sub.attiks.com
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com/files
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com/files/tmp
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com/files/js
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com/files/css
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com/settings.php
/data/disk/o1/aegir/distro/001/sites/o1.sub.attiks.com/local.settings.php
/data/disk/o1/u/o1.sub.attiks.com
/data/u/o1.sub.attiks.com

If you want I can give you root access to the server in case you want to have a look.

omega8cc’s picture

Status: Needs work » Postponed (maintainer needs more info)

Please attach all required logs and more info on the initial status of the system used (services installed etc).

attiks’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new8.35 KB
new111 bytes
new891 bytes
new217 bytes
new1.37 KB

Logs attached

attiks’s picture

Some more info, if I try to run sendmail if get sendmail: fatal: open /etc/postfix/main.cf: No such file or directory

So I ran sudo

  1. dpkg-reconfigure postfix
  2. rm -rf hostmaster-HEAD/sites/sub.h011.attiks.com/
  3. drush hostmaster-install --root=/var/aegir/hostmaster-HEAD --http_service_type=nginx --debug sub.h011.attiks.com and entered the mysql root pwd and a valid email address

And everything is working ;p

omega8cc’s picture

Could you attach also the backend install log: /var/backups/barracuda-install-120507-2009.log?

Thanks.

attiks’s picture

StatusFileSize
new276.45 KB
omega8cc’s picture

OK, so this is unrelated to this issue, as there was no sendmail or exim installed, according to this log, yet, Postfix install failed without any visible reason.

Could you confirm that there was no other mail server installed on the system before installing BOA?

omega8cc’s picture

The problem is that I can't reproduce this on any Precise fresh install.

attiks’s picture

No mail server was installed, only extra installed was sshd. I'll try to find more details on the used image.

omega8cc’s picture

Status: Active » Closed (cannot reproduce)

Closing. Feel free to re-open when you will find reliable method to reproduce the issue.

omega8cc’s picture

Issue summary: View changes

adding additional note

  • omega8cc committed dbd7a25 on HEAD
    BOA: Issue #1317264 by KrisBulman and #1543118 by attiks - Uninstall...