Henry,
I'd agree with the "smart host" suggestion, as long as your ISP doesn't
require a username and password on their email gateway (like Rogers). If
they do it simply based upon your source IP, that should work.
I can offer the quick way to get rid of messages waiting to be sent.
- first shutdown sendmail.
On most systems you can do this as root by:
cd /etc/init.d
sh ./sendmail stop
- clear out the mqueue directory where the active but undelivered email
files hide out
cd /var/spool/mqueue
pwd (this tells you what directory you're in - make very, very, very
sure it is mqueue)
ls (have a look at the files - they should be files with d's, q's, and
c's followed by numbers - I'm going a bit by memory here).
(think over what you've seen, and be very cautious about issuing the
next command)
rm *
(as root, an rm * can do severe damage to the system if you issue it in
the wrong directory, be careful)
- restart sendmail
cd /etc/init.d
sh ./sendmail start
If your problem is large mail spool files that are delivered locally, the
mail is stored in files in /var/mail (which is aliased to /var/spool/mail):
cd /var/mail
ls -l
(you'll see a few files in a typical system - root and asterisk
probably. If they're particularly large, you can throw away the mail by
doing)
>root
>asterisk
(this will permanently throw away all the mail in these mailboxes).
Not elegant, but if you need to fix things in a hurry, this will do it.
As always on a Linux/Unix system as root, be very careful what you're doing.
Hope that helps.
Regards,
Doug.
----- Original Message -----
From: "Henry L.Coleman" <[email protected]>
To: <[email protected]>
Sent: Sunday, February 08, 2009 10:12 PM
Subject: [on-asterisk] Confused about Sendmail and FreePBX
I suspect that many of the TAUG members have had trouble getting sendmail
to work
from their * boxes and now I am one of them.
Here are the facts:
I am running PBX in a Flash Freepbx and Asterisk 1.4
Part of this distro includes webmin and Sendmail
I want to send vmail attachments and error messages via email
I only need to send messages out.
My ISP blocks port 25
I have no fixed IP address but use a dynamic DNS (dyndns)service for this
* server
I have tried to get this up and running but with no luck.
I don't have the time or the inclination to learn about email servers like
sendmail
Can anybody help me with the configuration ?
Also I need to be able to delete 22,000 emails that have been placed on
the server by
warnings and errors etc. (before my HD fills up :)
Henry
=================================
Henry L.Coleman [www.VoIP-PBX.ca]
Tel: 647-723-5160 Ext.203
=================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]