Author Topic: Can´t send email when operator is offlne  (Read 6785 times)

0 Members and 1 Guest are viewing this topic.

oscargim

  • Jr. Member
  • **
  • Posts: 2
Can´t send email when operator is offlne
« on: July 03, 2012, 04:45:11 PM »
I have installed the messenger and working perfectly since a few days, but today I realize that when there is no agent online and I try to send an email message I cant.

When I clic the button the form opens I complete the form and when press send it stays loading and then get an error 500 on http://www.mydomain.com/atencion-online/leavemessage.php


You can test it here: www.levelagencia.com

What can be causing this? Thanks!

CaptHowdy

  • Jr. Member
  • **
  • Posts: 1
Re: Can´t send email when operator is offlne
« Reply #1 on: July 12, 2012, 06:45:55 PM »
Not sure how you are wanting to do it, I have seen a few tutorials on using swiftmailer and phpmailer, but I have not got them working. This is the steps I used to get it working for me, with antivirus antispam check, and I have had no problems with it. I am using 1.6.4 on Ubuntu 11.10.

sudo tasksel install mail-server
Inernet Site
Edit /etc/postfix/main.cf
   myhostname = SOMETHING
Change SOMETHING to FQDN
sudo service postfix restart
sendmail YOUR-EMAIL-ADDRESS < /etc/motd
sudo apt-get install clamav clamav-milter spamassassin
Edit /etc/default/spamassassin
   Change ENABLED=0 to ENABLED=1
sudo groupadd -g 501 spamd
sudo useradd -d /home/spamd -g 501 -m -k /dev/null -s /bin/false -u 501 spamd
Edit /etc/default/spamassassin
   OPTIONS="--create-prefs --max-children 5 --helper-home-dir --username spamd"
sudo apt-get install amavisd-new
sudo usermod -a -G amavis clamav
sudo usermod -a -G clamav amavis
Edit /etc/amavis/conf.d/15-content-filter-mode
Uncomment:
   @bypass_virus_checks_maps = (
   \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
and
   @bypass_spam_checks_maps = (
   \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
Edit /etc/postfix/main.cf
Add this to the end:
   content_filter = amavisd-new:[127.0.0.1]:10024
Edit /etc/postfix/master.cf
Add the following to the end:
   amavisd-new unix        -       -       n       -       2       smtp
     -o smtp_data_done_timeout=1200s
    -o disable_dns_lookups=yes
Also add this to the same file:
   127.0.0.1:10025 inet     n       -       n       -       -       smtpd
     -o content_filter=
     -o local_recipient_maps=
     -o relay_recipient_maps=
     -o smtpd_restriction_classes=
     -o smtpd_client_restrictions=
     -o smtpd_helo_restrictions=
     -o smtpd_sender_restrictions=
     -o smtpd_recipient_restrictions=permit_mynetworks,reject
     -o mynetworks=127.0.0.0/8
     -o strict_rfc821_envelopes=yes
sudo service postfix restart
Edit /etc/amavis/conf.d/05-node_id
Uncomment and add FQDN:
   $myhostname = "FQDN";
sudo /etc/init.d/clamav-daemon restart
sudo /etc/init.d/clamav-freshclam restart
sudo /etc/init.d/amavis start
sudo service postfix restart
sendmail your@email.address < /etc/motd
Check log /var/log/mail.log for CLEAN PASS
Email should be coming through now

Test offline message and an email should come through to the address specified in your settings.