Re: [on-asterisk] Confused about Sendmail and FreePBX

2009-02-09 Thread Douglas Pickett

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 aster...@voip-pbx.ca

To: asterisk@uc.org
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: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org






-
To unsubscribe, e-mail: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org



Re: [on-asterisk] Confused about Sendmail and FreePBX

2009-02-09 Thread Mike Ashton

Henry,

Sendmail is a bit of a bear when it comes to configuring. If your up to 
the task you need to configure it to use either SASL or TLS but it's not 
easy. This will allow you to us either port 465 (SSL) or 567 (TLS) which 
are ports that are not blocked for sending email, but require that you 
use one of the two authentication methods.


The easier rote like was previously suggested would be to use your ISP's 
smtp to handle the relay.


Now in regards to the 22000 emails, if you really want to delete them 
all, login to your server, then cd /var/spool/mail, then ls -l will 
show you the email files for the users on the system. Your probably 
going to have just two accounts, root  asterisk, if you sudo rm root 
you will delete them.


Now if you get your smtp outbound corrected, you can also make the 
emails for these accounts get automatically forwarded to a real account 
so they don't build up.


Alter the file /etc/aliases by adding
asterisk:   root
root: aster...@voip-pbx.ca

Then save the file and recompile the database issuing:
newaliases

now email sent to those accounts should relay to the destination email 
account


Mike


Henry L.Coleman wrote:

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: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org


  


--
Mike Ashton

Quality Track Intl
CTO
Ph: 647-724-3500 x 301
Cell:   416-527-4995
Fax:416-352-6043

QTI CONFIDENTIAL AND PROPRIETARY INFORMATION

The contents of this material are confidential and proprietary to Quality Track 
 International, Inc.
and may not be reproduced, disclosed, distributed or used without the express 
permission of an authorized representative of QTI.
Use for any purpose or in any manner other than that expressly authorized is 
prohibited.
If you have received this communication in error, please immediately delete it 
and all copies, and promptly notify the sender.




-
To unsubscribe, e-mail: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org

RE: [on-asterisk] Confused about Sendmail and FreePBX

2009-02-09 Thread Bill Sandiford
Henry:

Seeing as the 22,000 messages are waiting to be sent (assuming they haven't 
bounced yet) they will be in /var/spool/mqueue or /var/spool/client-mqueue

If they have already bounced you will likely find them in /var/spool/mail like 
Mike suggested or perhaps in /var/mail

The other option is to get an ISP that doesn't block your port 25 (cough cough) 
:)

Bill

From: Mike Ashton [mailto:mike.ash...@qualitytrack.com]
Sent: Monday, February 09, 2009 10:53 AM
To: asterisk@uc.org
Subject: Re: [on-asterisk] Confused about Sendmail and FreePBX

Henry,

Sendmail is a bit of a bear when it comes to configuring. If your up to the 
task you need to configure it to use either SASL or TLS but it's not easy. This 
will allow you to us either port 465 (SSL) or 567 (TLS) which are ports that 
are not blocked for sending email, but require that you use one of the two 
authentication methods.

The easier rote like was previously suggested would be to use your ISP's smtp 
to handle the relay.

Now in regards to the 22000 emails, if you really want to delete them all, 
login to your server, then cd /var/spool/mail, then ls -l will show you the 
email files for the users on the system. Your probably going to have just two 
accounts, root  asterisk, if you sudo rm root you will delete them.

Now if you get your smtp outbound corrected, you can also make the emails for 
these accounts get automatically forwarded to a real account so they don't 
build up.

Alter the file /etc/aliases by adding
asterisk:   root
root: aster...@voip-pbx.camailto:aster...@voip-pbx.ca

Then save the file and recompile the database issuing:
newaliases

now email sent to those accounts should relay to the destination email account

Mike


Henry L.Coleman wrote:

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.cahttp://www.VoIP-PBX.ca]

 Tel: 647-723-5160 Ext.203

 =









-

To unsubscribe, e-mail: 
asterisk-unsubscr...@uc.orgmailto:asterisk-unsubscr...@uc.org

For additional commands, e-mail: 
asterisk-h...@uc.orgmailto:asterisk-h...@uc.org









--

Mike Ashton



Quality Track Intl

CTO

Ph: 647-724-3500 x 301

Cell:   416-527-4995

Fax:416-352-6043



QTI CONFIDENTIAL AND PROPRIETARY INFORMATION



The contents of this material are confidential and proprietary to Quality Track 
 International, Inc.

and may not be reproduced, disclosed, distributed or used without the express 
permission of an authorized representative of QTI.

Use for any purpose or in any manner other than that expressly authorized is 
prohibited.

If you have received this communication in error, please immediately delete it 
and all copies, and promptly notify the sender.






Re: [on-asterisk] Confused about Sendmail and FreePBX

2009-02-08 Thread Andre Courchesne - Consultant

Hi Henry,

  Well, if your ISP blocks port 25, you need to go through your ISP 
smtp relay. In sendmail this is knows as the smart_host configuration.



Andre Courchesne - Consultant
http://www.net-forces.com
Phone: (514) 667-8448
MSN: courc...@net-forces.com
Skype: VoipForces

L'information contenue dans le présent document est la propriété de 
Andre Courchesne. Et est divulguée en toute confidentialité. Cette 
information ne doit pas être utilisée, divulguée à d'autres personnes ou 
reproduite sans le consentement écrit explicite de Andre Courchesne.


The information contained in this document is confidential and property 
of Andre Courchesne. It shall not be used, disclosed to others or 
reproduced without the express written consent of Andre Courchesne.


Henry L.Coleman wrote:

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: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org



-
To unsubscribe, e-mail: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org



RE: [on-asterisk] Confused about Sendmail and FreePBX

2009-02-08 Thread Erik (Caneris)
Two suggestions for the long term fix:
1. Dump the ISP and switch to one that doesn't block SMTP and gives you a 
static IP (that would resolve two of your complaints below)
2. Dump sendmail and go to Postfix (that would resolve everything else). 
Deleting a message from the queue in postfix is as simple as issuing a 
postsuper -d id. Deleting 22000 is still a one liner.

Quick short term fix: get SSMTP and use it instead of sendmail, it's a very 
lightweight server. You configure a single very simple config file (there are 
only about 5 options in total) to relay out your ISP's mail server (since your 
ISP is blocking) and you're done. 

Let me know how it goes and whether you're still stuck.

Erik

From: Apache [apa...@tsx3.computeradvocacy.com] On Behalf Of Henry L.Coleman 
[aster...@voip-pbx.ca]
Sent: Sunday, February 08, 2009 10:12 PM
To: asterisk@uc.org
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: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org


-
To unsubscribe, e-mail: asterisk-unsubscr...@uc.org
For additional commands, e-mail: asterisk-h...@uc.org