Server :: Sending Mail From Shell Script?
Jul 5, 2011
I tried the command echo "Test" | mailx -s "Test subject" reciever@test.com -- -f Tester@gmail.com
But in the mailbox of reciever, i can find the sender name as Tester@gmail.com. My requirement is to show the sender as 'Tester' alone, without the domain name.
View 3 Replies
ADVERTISEMENT
Oct 27, 2010
I have the following config with Postfix:
Quote:
But it keeps coming up with:
Quote:
Is there any reason from these configs as to why this should be occuring?
This was the guided step by step tutorial I followed: [url]
View 2 Replies
View Related
Jul 20, 2009
I'm running a server with two sites which both need to be able to send emails. Currently I have Postfix set up to send email via Google Apps. This works fine, but Google's servers ignore the From: address I specify and substitute the one I logged in with. Is there a way to make Postfix log into Google Apps with a different username based on what site the email is coming from? The server does not recieve any mail itself; Google recieves it and we have it set to forward it to the appropriate person's real email address. I'm only worried about sending mail.
(Postfix is not a requirement here, so if there's another mailer that can do this better, I'm open to ideas. However, sending email directly from the server isn't an option as it's a residential IP address and blocked by most of the big email providers.)
View 6 Replies
View Related
May 4, 2011
I am having trouble configuring Zimbra to restrict sending for some users. A subdomain has been added in the ZCS web page for the domain, resulting in two potential mail addresses:
[URL]
The subdomain needs to be restricted from sending mail to the outside world and to other users on the same subdomain. It should only be able to message users on the main domain. The users on the main domain should be able to email anyone in the world. Is it possible to configure this without installing Zimbra on two machines?
View 1 Replies
View Related
Mar 27, 2009
I'd like to have anything that tries to send mail locally on my machine (including crontab reports for instance) to be handled by my ISP's smtp server instead of my machine acting like it's own SMTP server. I've spent around 15 hours trying to figure out how to do this and I keep either getting into things that I don't understand, or hitting brick walls (for instance, I found nullmailer, but after installing it, it seemed like it would only work on Unix) Is there an application like nullmailer which I can use as my MTA to forward all internal mail to a different SMTP?
View 3 Replies
View Related
Jan 7, 2010
One of my mailservers running postfix has suddenly stopped sending mail and has been generating the following errors:
Jan 7 12:03:08 postfix/sendmail[3560]: warning: premature end-of-input on /usr/sbin/postdrop -r while reading input attribute name
Jan 7 12:03:08 postfix/sendmail[3560]: fatal: root(0): unable to execute /usr/sbin/postdrop -r: Success
[Code].....
Things I have tried to fix this problem, but didn't work.
1) Stopped postfix, uninstalled and reinstalled.
2) Did a complete filesystem relabel with a touch /.autorelabel and reboot.
3) Did a restorecon -F -R on /etc/postfix, /var/spool/postfix and /usr/sbin/post*
Nothing above has worked and have no idea why with selinux disabled postfix works and with it on it fails.
View 6 Replies
View Related
May 16, 2010
I have a LAMP server and need a web page to send email messages. I could do it with my Win 2k server through my cable service but can't seem to get it to work here.
View 9 Replies
View Related
Jul 8, 2011
Ehlo command not recognizing while sending test mail to outside network from postfix. When I am trying to test a mail within the network it is successfully happening ehlo.
View 2 Replies
View Related
Jul 6, 2011
i had configured mail server in linux. i had configured sendmail in linux client . i have error while sending mail through thunderbird smtp auth error how can i resolv the issue .....
View 1 Replies
View Related
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
Nov 4, 2009
My ISP blocks outgoing email if it does not login properly with a valid account. I successfully configured sendmail to use SMART_HOST and confAUTH_OPTIONS with confAUTH_MECHANISM set to LOGIN PLAIN.
It successfully sends email because I tested it with evolution sending through 127.0.0.1, but I need to specify myacount@mydomain.com as the email address for root.
But it doesn't work for logwatch because it sends as from root@localhost.localdomain, and my ISP's smtp server rejects it. The message I get back in root@localhost account is the following:
----- Transcript of session follows -----
... while talking to smtp.mydomain.com.:
>>> MAIL From:<root@localhost.localdomain> SIZE=581 AUTH=<>
<<< 550 5.7.1 Client does not have permissions to send as this sender
554 5.0.0 Service unavailable
I thought that I should masquerade all emails from this domain, so I configured sendmail as specified in [1] section "24.3.1.4. Masquerading", but it doesn't work. It seems that masquerading in sendmail is broken or something is wrong in the documentation.
[1] [URL]
I have sendmail 8.13.8-2 and centos-release-5-4.el5.centos.1.
Is there a way to specify the "From:myacount@mydomain.com" in logwatch ? or Is there a way to make it work the masquerading in sendmail so I can masquerade everything as coming from a specific account?
View 4 Replies
View Related
Jan 18, 2011
I have configured mail server with postfix with dovecot with no encryption:
When connecting with Thunderbird imap is working fine. When sending email from another domain to this domain again it is fine. But when I want to send mail from my domain to another it gives me error and this is /var/log/maillog:
Quote:Jan 18 18:23:09 srv1 postfix/smtpd[3991]: NOQUEUE: reject: RCPT from unknown[95.81.67.120]: 554 5.7.1 <Recipient email>: Relay access denied; from=<Sender> to=<Recipient email> proto=ESMTP helo=<[127.0.0.1]>
View 1 Replies
View Related
Apr 30, 2010
in Lucid ive been trying to get the mail applet to light up green by sending myself mail. Does this applet only light up when IMs r received or does this also work with evolution and if so what might i have done wrong in evolution, ive tried it with evolution open and evolution closed.
View 8 Replies
View Related
Jul 1, 2011
I have two servers relavant here: mail.domain.com (1.1.1.1) - which is the nameserver and the mail server for domain.com. www.domain.com (2.2.2.2) - which is the www subdomain for domain.com domain.com (cname www.domain.com) - an alias for www.
The zone file for domain.com lists mail.domain.com as the MX server for domain.com. 2.2.2.2 is actually being served web pages as a virtual host. It's real hostname is www.anotherdomain.com. Mail for domain.com works pretty well, in general. However, if I attempt to send mail from www.domain.com (or its alias domain.com), I get "mail for domain.com loops back to myself" in the postfix logs. On 2.2.2.2 /etc/postfix/mail.cf has mydestination = www.anotherdomain.com, localhost. How do I tell postfix on 2.2.2.2 that mail for domain.com needs to be delivered to mail.domain.com?
View 1 Replies
View Related
Jan 10, 2010
I'm simply just having trouble sending mail with postfix. I have all my hostnames, rdns setup properly. I also have iptables open on port 25.
View 9 Replies
View Related
Dec 8, 2010
l to a group in Linux? for example, I want to send a notification mail to 20 people and I want to create a group of these 20 people and want to send them the notification
View 5 Replies
View Related
Jun 11, 2009
I am using Ferdora 6 OS on which I installed CVS. So whenever I make any changes in CVS, notification mail must be sent to few users.
View 2 Replies
View Related
Aug 24, 2009
cannot find what should I do, which conf should I edit to make it work. I cant send email from command line.
Is it necesary to have mail server setup? Hope not, just want simple txt mail sent. I tried MUTT and MAIL.
View 1 Replies
View Related
Feb 13, 2010
I want to send mail to potential customers from my localhost server in my SOHO. I have a web site hosted with a company called geek hosting [URL], so I have access to the mail services through them... I want to their mail server to push things out to the world form my localhost server.
I do have a registered domain name which the hosted site runs under
the domain name for my centos 5.4 server is localhosthost.localdomain.
View 2 Replies
View Related
Dec 23, 2010
I am very new to CentOS and running a server in general. I managed to get a server setup with CentOS, and it's running a wordpress driven social networking site. Everything is fine except sometimes my server won't send registration/activation emails to some email addresses. This is a huge problem because people signup but then can't activate their account. I don't understand why its sending some and not sending others based on the email domain? The guys at wordpress said "it's that your server does not support SMTP or at least wp_mail() in its normal form" but that doesn't mean much to me.
View 3 Replies
View Related
Apr 24, 2010
How is it possible to send email using the "mail" program? I tried:
echo "testing" | mail -s "test" myaddress@gmail.com
But nothing happened. I made sure that the sendmail daemon was running before I tried. Is there anything else that I have to set up first?
View 5 Replies
View Related
Dec 31, 2010
I have OpenSuse 64bit running a web site. I have a form on this site here:- Dynamic Systems Group The script itself works and I have tested it on another hosted server and it works fine. However on my server the email the script sends never arrives, which must be a problem with my Postfix settings I guess. However I also have two pages on my site for testing sending of mail, which BOTH report a postive result:-
[URL]
However even though these pages report successful send the mail stil never arrives. I have looked at many pages and forums on the internet and I am really, really confused as to how to set up Postfix. On the Suse box I have the Mail Server configured in Yast to send mail via my Gmail.com account using TLS and authentication but still no success!
View 9 Replies
View Related
Jan 5, 2010
I have kubuntu 9.10 and I would like to configure Ubuntu to can send mail from command line with mailx. I've saw that I need to install a MTA. But I don't know wich install and how.
I follow this tutorial:
[URL]
But when I try to send a message, in the mail.log says me:
Code:
Jan 5 10:21:33 david postfix/smtp[3795]: 41AEA41DBE: to=<pepelu@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[209.85.223.73]:25, delay=1086, d
elays=1022/0.01/32/32, dsn=4.7.0, status=deferred (host alt1.gmail-
[Code].....
View 3 Replies
View Related
Dec 28, 2010
When I sending mail to defined mail on the internet page I have to configure Evolution and open it for sending. Is it possible to send mail without opening Evolution. Just send to defined mail on internet page.
View 8 Replies
View Related
Feb 25, 2011
I want to send mails via gmail with php. I need to know how to configure main.cf, php.ini, postfix,smtp... and all what is necessary. I tried a lot but no results.
View 5 Replies
View Related
Sep 4, 2009
I'm using the mail command and I am able to send mail to my gmail account with out any problems. However when I send mail to deco -at- mycompany.com I nothing happens and no mail ever arrives in my mailbox. It might be worth mentioned that my centos5 is a virtual machine on the same server as the company exchange mail server.
View 1 Replies
View Related
Jul 2, 2010
GNU/linux kernel 2.6, Slackware 12.0.
I ran mail (aka mailx) and opened an account foo. If I remain inside the program, the command 'account foo' prints the account data. Good. But if I exit the program, and rerun it, then the command 'account' has no output which is to say I have no account.
View 1 Replies
View Related
Apr 13, 2010
i m using centos 5.4 for Data Server, there i hv shared a directory to store data. i want, when ever owner of that data does delete any thing from directory, system should send me a mail with logs of that deletion action with the detail some thing like bellow
1- IP of system, from where owner did access the server and delete the data.
2- Date, Time and Name of File with Path.
These logs should be sent me by email automatically.
View 2 Replies
View Related
Jun 8, 2010
I'm trying to get logwatch to email me. I think my logwatch.conf file is okay. I have postfix installed. The mailer as far as I can tell is set correctly ("usr/bin/mail"). When I run logwatch - I get "no mail for aubrey"
Heres my logwatch.conf file:
Code:
linux-qwkb:/home/aubrey # edit /usr/share/logwatch/default.conf/logwatch.conf
########################################################
# This was written and is maintained by:
# Kirk Bauer <kirk@kaybee.org>
#
# Please send all comments, suggestions, bug reports,
# etc, to kirk@kaybee.org.
#
######################################################## .....
View 13 Replies
View Related
Feb 23, 2010
Postfix is not sending mail, I did a basic test of sending an email locally using the Linux mail command, and nothing was delivered, and I couldn't find an error either.
Where is the log for postfix located?
In main.cf I changed:
myhostname
mydomain
mynetworks
home_mailbox (I want to use Maildir/)
What am I missing?
View 3 Replies
View Related