Ubuntu Servers :: Email Is Sent From The Mail Queue Its Not Delivered In Html Format - File

Nov 3, 2010

I have recently set up an ubuntu 10:04 based email server using postfix, clamav and squirrelmail. The setup works like a beast, much better than the old sco based system we were using. Anyway I work for a law firm, and we have use a bespoke case management system to complete work on cases. We have started a paperless office initiative. This means we are asking more and more clients and firms to correspond via email. This is where my troubles are kicking in. The governing body of solicitors in the UK is very picky, and we have to have certain formats and information in documents when sent out to clients, this is the same for emails.

I have a script that will cat the html header information, then cat the body of the email and finally cat the footer html information. The output of which is perfect and usable to the firm. My problem comes sending this file. The end of the script I have the following:

Code: mail -s $SUBJECT $CLIENTS_EMAIL < email.$$$ Pretty self explanatory. But when the email is sent from the mail queue its not delivered in html format but in plain text. Any email sent using outlook from any machine on the network can send and receive html email. How can I make this happen from the command line?

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: Mail() Not Sending In HTML Format?

Apr 15, 2011

I'm not sure if this is a server problem or a PHP problem. I've tried the code on other servers and it seems to work - so I assume it's a server problem. I am running it on Ubuntu 10.10.

When run this code, it does not render in HTML on my OSX mail reader:

PHP Code:

<?php$to = "xxx@xxx.com";$subject = "HTML email";$message = "<html><head><title>HTML email</title></head><body><p>This email contains HTML Tags!</p><table><tr><th>Firstname</th><th>Lastname</th></tr><tr><td>John</td><td>Doe</td></tr></table></body></html>";// Always set content-type when sending HTML email$headers = "MIME-Version: 1.0" . "

[Code]....

View 1 Replies View Related

Ubuntu Servers :: Mail Not Being Delivered Externally?

Mar 1, 2010

We've just setup an Ubuntu server as our main web server. The site's domain, say mydomain.com, has its DNS hosted elsewhere. A records are pointed to the IP address of the new server, so far so good. Email is however handled elsewhere. Sending mail to _anything but_ mydomain.com works fine. However when i try to send mail to me@mydomain.com the mail ends in /var/mail/me

how to deliver the mail externally?

Using Ubuntu 9.10 with sendmail

View 9 Replies View Related

General :: Delete Specific Email In Mail Queue

Jul 5, 2010

My system have problem to route mail to our mail server, some mails store to mail queue, I use the command "mailq" have the below output, can advise if I want to delete a specific mail "ofdaf8fafag8sgfas", what can I do?

o639ngDV026834 515345 Mon Jul 5 17:49 <mail1@ora-test.com>
(Deferred: Connection refused by ora-route)
ofdaf8fafag8sgfas 514345 Mon Jul 5 17:49 <mail2@ora-test.com>
(Deferred: Connection refused by ora-route)
Total requests: 36

View 5 Replies View Related

General :: Mail In The HTML Format?

Apr 14, 2011

I have written a scripts that checks the load average of server and if it is more than 5 it send a mail describing Current Load Average and High CPU/RAM processes . The problem is I want to send these information in html form .I have done necessary coding to do the same but whenever i try to include the output of following It doesnt seems to be properly formatted.

Code:

echo "Top 10 CPU Utilized Processes" >> /tmp/Load_Average_Check.html
ssh -Tqn $1 ps auxf | sort -nr -k 3 | head -10 >> /tmp/Load_Average_Check.html
echo "-------------------------------------" >> /tmp/Load_Average_Check.html

[code]....

Is there any way i can send some part of script output in html while other in plain text ?

View 2 Replies View Related

Fedora :: Cron Mail In HTML Format?

Apr 11, 2011

All my cron jobs are configured to email output to [URL] Text content comes through, just fine. I have several cron jobs that output HMTL, however cron's output email displays the html tags as-is as text, instead of html. example: <br> Anyone got lucky being able to send cron output emails in html format (either by configuring fedora or through command line)? I have tried the following command lines in fedora crontab manager with no luck

TRY 1
CONTENT_TYPE=text/html /usr/bin/php /full/path/myphp.php | mail -s 'email subject' myemail@mydomain.com
(cron executes, but sends email as a text email, not html email)
TRY 2
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' myemail@mydomain.com

[code]...

View 1 Replies View Related

Ubuntu Installation :: Mail Gets Delivered To Var/mail And Var/spool And Squirrelmail Is Not Pickiing It Up?

Mar 12, 2010

i have a VPS running Ubuntu server 9.10 i have installed postfix and courier folloiwng a tutorial on How to forge.i have installed also squirrelmail When i ran squirrelmail , i tried to send a mail to myself to see if it was working. Mail appear in the Sent folder of Squirrelmail However, the INBOX was still showing no messages when i logged in to the server, i see that mail was delivered in var/mail/info (my username). so, my question is: why mail gets delivered to var/mail and var/spool and squirrelmail is not pickiing it up?

View 1 Replies View Related

Ubuntu Servers :: How To Use Html Type To Send Email

Nov 24, 2010

I can only use plain text to send email via my postfix, how can I use html type to send email, is it something wrong?

View 4 Replies View Related

Ubuntu Servers :: HTML PHP Email Configuration / Squirrelmail Setup

Sep 1, 2011

I'm having problems with emails containing HTML content. When Google downloads the email messages via POP3 from my squirrelmail server, the message does not display using HTML. I'm not sure if this is Google's fault or Squirrelmail's fault, but I've never had problems before on other servers running the same script and using squirrelmail. If I login to squirrelmail, I have the option to download the email message as an attachment. The attachment, if opened by my local browser, shows up as HTML content, and it is properly formatted. However, I'm using Google to download my emails and file them under my Gmail account. After Gmail downloads the messages, it shows up like this:

From
To admin@domainRemoved.com
Date Sat, Jul 30, 2011 at 6:07 PM
Subject Pending Registration

Content-type: text/html; charset=iso-8859-1
From: Name Removed <admin@domainRemoved.com>
Message-Id: <20110730234302.6B6FEDC08BA@eric-desktop>
Date: Sat, 30 Jul 2011 17:43:02 -0600 (MDT)

<p><b> After registering your client via your server, please visit the following URL to send them confirmation: </b></p>

I really need it to show up properly once Gmail downloads the messages, as it takes a long time to login to Squirrel mail and download each message as an attachment. My PHP Code Headers Look like this:
$headers = 'MIME-Version: 1.0' . " ";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . " ";
$headers .= "From: $uname <$email>";

Someone suggested that I remove the from my script. I did, and now the email shows a from sender as www-data www-data@domain.com. Before, the from field showed up as empty. However, my PHP script is designed to change the sender's information to the clients that contact me. Thus, if customer A contacts me, the email should be from customer A <custa@whatever.com>. However, it's not being changed by the PHP script. It works on every other server but mine. I think my postfix configuration isn't setup properly? What needs to be configured on it?

View 3 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

Ubuntu :: Convert An RSS Format File To HTML Using Command Line Tools?

Feb 14, 2010

I'd like to find a way of

1) capturing an RDF formatted RSS feed as a file on my computer

2) converting the result to HTML using local command line tools

I've sorted 1) with wget? I've discovered xsltproc but I'm going round in circles. The master plan is to import my pinboard bookmarks into a static web site produced on my linux box using a handful of clever bash scripts.

View 7 Replies View Related

General :: Bcc Copy Is Not Getting Delivered To Email Alias (at Local Server)

Mar 7, 2010

my mail server [URL] is hosted abc@[URL] is a pop id below are alias:

user1@[URL]
user2@[URL]
user3@[URL]

fetchmail is configured to download all mail for alias email id on local linux server and distribute to local users.

fetchmailrc config:
[Code]....

everything works fine except bcc copy is not getting delivered to email alias (at local linux server). It is delivered to local postmaster account :abc@[URL] (in Linux server) I have tried all envelope option in fetchmailrc file, but it did not work.

View 1 Replies View Related

Debian :: Mail Delivered But Not Being Read By Client

Jan 19, 2010

Whenever Debian is installed, a mail client is also installed. I don't have the faintest idea what is happening below the surface, but if something happens with the system, like a failed cronjob, a mail is sent to my account on that computer. I can't recall it exactly, but I think during Debian installation I had to specify where system mail has to go to. In my case I am installing as jlinkels, so all mail directed to root goes to jlinkels. I am not sure if that redirection is still asked, on older versions I know it was, but I can't remember I had to tell that while installing newer versions. Anyway, on all boxes, automatically a folder /home/jlinkels/Maildir is created and within that the subfolders new cur and tmp. Whenever I log in in such a box mail is checked, and when I run mail I get a listing and can read the mail.

However, now I am running a server for which it is extremely important that I get the mail if there is something exceptional, and this mail does not function. That is, I don't have the ~/Maildir/new ~/Maildir/cur etc, but for some reason I do have ~/new, ~/cur etc. Now when something happens, root receives a mail. This mail is placed in ~/new. But when I run mail I see that there is no new mail for me. Still there is new and unread mail in ~/new. Installed Debian Lenny on this box and did nothing unusual. I have installed tens of Lenny boxes and run thru the installation procedure almost with my eyes closed so I am pretty sure I did not do anything out of the ordinary on this box. Still the mail is screwed up.

A few observations:
- the system (programs like cron) know they should send mail to root. This happens. I see in the header the mail is sent to root.
- the mail system (whatever that is) knows that mail to root should be sent to jlinkels
- the mail system even knows where to find the mailboxes of jlinkels
- the mail client does not know where to find new mail for jlinkels
I have seen that exim4 is running on the box. Is exim4 responsible for forwarding and dropping the mail in ~/new? How this mail is produced, how it is dropped in my mailbox, and how the mail client can find this.

View 4 Replies View Related

CentOS 5 :: NFS - Mail Is No Longer Delivered To The Mailboxes

Oct 4, 2009

I recently started having a problem with Dovecot deliver on my mail server. Mail is no longer delivered to the mailboxes. The mail boxes are on an NFS share. I tracked this problem to the following system call:

[Code]...

View 2 Replies View Related

Server :: When Sent Mail For Local Users Its Delivered Locally

Sep 22, 2010

I installed sendmail in RHEL5.4 with TrendMicro Spam scan engine. The configuration like sendmail should forward all the mails to scan engine after scanning it will deliver it to the mail domains. same way all the mails coming from external servers are scanned and the delivered to local box. My problem is when i sent mail for local users its delivered locally. but when i sending mail for external like yahoo its going through scan engine. I added the smarthost in sendmail.mc file also.

View 1 Replies View Related

Ubuntu Servers :: Sending Mail To External Email (Outside LAN)

Apr 14, 2010

I just setup a mail server on my web server and I cannot for the life of me figure out how to send emails to external (as in outside my LAN) emails or receive from external emails. I'm using Postfix with Dovecot and Squirrelmail. I get this delivery report in Squirrelmail when trying to send an email to my hotmail address.

Final-Recipient: rfc822; example@hotmail.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx3.hotmail.com
Diagnostic-Code: smtp; 550 DY-001 Mail rejected by Windows Live Hotmail for policy reasons. We generally do not accept email from dynamic IP's as they are not typically used to deliver unauthenticated SMTP e-mail to an Internet mail server. [URL] maintains lists of dynamic and residential IP addresses. If you are not an email/network admin please contact your E-mail/Internet Service Provider for help. Email/network admins, please visit [URL] for email delivery information and support.

View 3 Replies View Related

Ubuntu Servers :: Incoming Email Not Going Through (connection Timed Out On Mail Server)?

Sep 1, 2011

I have been trying to solve this problem for two days now looking at various forums and websites but can't really figure out what's going on here.I have setup postfix on my ubuntu and I can send emails using "telnet localhost 25" and the ehlo thingy. Apache can also send emails. My problem is with incoming emails. When I try to send an email (through Gmail) I get the following error message:

Code:
Delivery to the following recipient has been delayed:
root@example.com

[code]...

View 2 Replies View Related

Ubuntu Servers :: Use The Mail Command Line Program To Occasionally Send Log Output To Email Aliases?

Jan 27, 2011

Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.

View 2 Replies View Related

Ubuntu Servers :: Can't Edit The HTML File?

Oct 4, 2010

I installed apache and when i go to my 127.0.1.1 ip i see the welcome page. I found the directory where the html is located (var/www/index.html but i cannot edit the file. what is going on here? why cant i edit the HTML file?

View 1 Replies View Related

Ubuntu Servers :: Edit Index.html File With Winscp (SSH)

Mar 4, 2011

Whenever I try to edit my index.html file with Winscp (SSH), it says I don't have the permission to do so. Is there anyway I can change that?

View 4 Replies View Related

Server :: Finding The Source Of The Email In The Main Queue?

Mar 7, 2011

I have a server (RHEL 4.7) with an mqueue that keeps growing over a two or three day interval. Then I have to manually flush the queue by removing all the mail in the spool directory as the sendmail flush command doesn't work. I've looked at the mail queue manually with a sendmail -bp command and it seems to show an occaisional mail item in the queue. On the other hand, there seems to be a lot more non-legitimate emails in the queue spool. how do I find out the source of the email in the main queue? Next, how do I stop it from building the queue? Next, is there anyway to automatically flush the queue once it builds if I need to?

View 2 Replies View Related

Fedora Servers :: Firefox Can't See Apache Index.html File

Aug 25, 2011

My setup is two laptops connected by crossover cable. One runs Windows xp the other Fedora 13. Neither is connected to internet. I'm using a subnet of 192.168.1.x On Fedora eth0 is up, apache runs because it creates pidfile. Everything pings fine. Windows xp ip pings fine from command line. Gave Windows xp a static ip of 192.168.1.1 mask 255.255.255.0 and gateway 1.2, same as eth0. xp says it sees the server. eth0 is up.

DirectoryIndex looks at index.html. I created that file with very simple code and put it in document root. Document root permissions are 755. Access_log 770. Error_log 644. Apache User 755. Listen 80 When I type the ip for eth0 (192.168.1.2) into firefox, firefox gives me an error message - can't find server. The connection status says its connected.

The error log includes a line: [warn]./mod_dnssd.c:No services found to register I don't know what this means. Apache is not writing to access_log. When I cat the path to access_log I get nothing, then a command prompt. I'm looking for the part I'm missing that will let Apache serve that index.html file to firefox so I can see how my code looks to firefox as I go.

View 6 Replies View Related

Programming :: Basic PHP Mail Function \ Say 'and If 'email' Is Not Equal To 0 Then Send The Mail?

Sep 9, 2010

this is my code at the moment

PHP Code: <?php
if (isset($_REQUEST['email'])) && $_REQUEST['email']!='0'{
$to = "chrisathisemail";

[code]....

View 5 Replies View Related

Server :: Sendmail Isn't Sending Mail For Some Reason And Keeping It In The Queue

May 14, 2011

Sendmail isn't sending mail for some reason and keeping it in the Queue. I attemped to flush them but it deferres the connection to the server in which it is trying to relay the message to. I have checked to see if there is a DNS error or anything like that. I attemped to flush the messages through webmin.

This is the result.

Code:

I am not finding anything in the logs to let me know their is an error. I can ping the mail servers that it is trying to send to. Now it has started delaying when ping MX servers. So I knew something was starting to mess with it. I have checked the /etc/hosts. It is correct. The server isn't black listed. Mail to root just gives me.

Code:

View 2 Replies View Related

CentOS 5 Server :: Cron Send Mail But Stuck In Queue

Aug 5, 2010

I recently install CentOS 5.5 on my small server. Unfortunately, I have problems with my mail configuration. I don't know anything about sendmail and dns configuration so I am just looking for something easy to set up. I use cron to perform automatic task. I set up the variable $MAILTO in cron to my regular mail. Cron send the mail but it is stuck in the queue.

View 11 Replies View Related

Ubuntu Servers :: Remove The Leading Number And Slash If The Input File Is In The New Format?

Sep 10, 2010

I'm thinking of a few ways to do this I'm curious how many better/equal ways there are to do the same task.in a file with format like: 20 text Gi0/2 some other junk I have it reformatted to look like this before going in a database: 0/2 20 text. But for whatever reason some of the new input text looks like this now: 20 text Gi1/0/2 some other junk

My script makes it look like this: 1/0/2 20 text. I want it to remove the leading number and slash if the input file is in the new format.

View 5 Replies View Related

General :: Fedora 13 Book For Beginners In HTML Or PDF Format

Sep 24, 2010

I have many years of experience with DOS and Windows, but this is my first dabble in Linux, in particular Fedora 13. The OS is great, but my lack of knowledge makes me uneasy. Is there a good book available in HTML or PDF format that covers. The basics, and is relevant to Fedora 13?

View 10 Replies View Related

General :: Copy And Forward Email To Multiple Email Servers Using Postfix?

Dec 31, 2009

I have an email setup where all of the emails from our email host is downloaded to our Linux server using Fetchmail. Then some of the incoming emails are sent to an MS exchange server (server1.domain.com) using Postfix. What i want to do is to send a copy of all emails to Another server (server2.domain.com) for redundancy.Can postfix be configured to send copies out to both?

View 1 Replies View Related

Server :: Routing Inbound Email To Multiple Email Servers?

Dec 21, 2009

I have recently setup a new mail server and have simulated sending and receiving on the new email server. The new email server will replace the primary one.I would like to setup the new email server in parallel with the existing one.This way i can observe issues that might occur and be aware of what could go wrong. I want to received mail to be delivered to both mail servers at the same time.I would like to use postfix, exim i find a bit to difficult to understand.I have thought of using transport maps, the only problem is that you can only forward mail to one server at a time using transport maps.I think recipient_bcc_maps and sender_bcc_maps could work, i would just like ideas of how i can do this.

View 5 Replies View Related

Programming :: Include Html On A Velocity Template Mail?

Jul 13, 2010

Right now we send notification emails using a velocity template (apache and java), the thing is that the notification engine call the Email.vm file to add all the information and variables. This process only attach the information (text) on the .vm file.

We need to send that email on html. The thing is that if we write the html code on the file, when the .vm file is called that email includes the code not the result of the html.

We have tried adding the headers and everything.

The question is:

Is there some way that we can pre-process the html code and include to that email the result?

Or can we tell the .vm file that it should be handle as html? (like php for example <?php ?>, the <html> and </html> tags doesn't work.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved