Fedora Networking :: Command Line Email With Att Dsl (stunnel And Ssmtp)?
Jan 26, 2010
I have been trying to get command line email working for cron email reports and such. I have set up stunnel for ssl and this works with thunderbird (set to route through stunnel with no ssl in thunderbird). I am trying to use ssmtp as I don't need all the complexity of sendmail - just trying to use an [URL]..account It complains that my address is not verified. I think the from line is not set up properly but I have been unable to see this in the stunnel logs and ssmtp doesn't seem to have logs. Is there a way to get more logs from stunnel. How do I make sure I am sending the right email and not something like "localhost"?
I received stunnel 4.40-0.6.1 as an update from "zypper up" (openSUSE 11.4).After a reboot, stunnel does not work anymore for the programs that need it.Symptom: the program (emacs+mew) hangs for ever, telling me
"Creating an SSL/TLS connection..." /var/log/messages does not contain a clue and restarting stunnel via "rcstunnel restart" looks fine:
Background: I want to send and receive emails from the command line. I'm an OS X immigrant and I don't know my way around a shell. I learned what sudo and man pages are last week. I'm hoping to learn more by doing more in the Terminal, and I check my emails a lot, so that would be a nice place to start. I've had a root around, but there doesn't seem to be much on the relevant fora or wikis to help me. The core of the problem: When I enter
Code: $ mail the shell returns Code: No mail for USER
I know that there's mail waiting for me. When I log into Gmail in my web browser, I can see it. So, I assume that the problem is that heirloom-mailx (the mail app I've installed) isn't connecting to my Gmail account for some reason. I originally also noticed that I couldn't send emails by typing
Code: $ mail name@address.tld but I found this post, and after following the steps it outlines, I have successfully composed and sent mail from the command line. I assume that I have just missed some fundamental final step in linking my Gmail account with mailx.
Do you know what I need to do to fix this? I'm really enjoying getting to grips with Linux, and I don't want to be stopped now by what seems to be such a piffling problem.
I'm looking for an easy way to send basic emails for the command line. I have tried configuring sendmail and mailx, but I have yet been able to receive a test email at my remote address. I have read through a fair amount of "how to" on this but I am a little confused and obviously not doing something right. My sendmail.mc file is as follows
I am pretty new to C.L.I/text editing work. So maybe its a bit old-fashioned but I am interested in learning how to send email via the command line. I am running 10.04 32 bit
Situation: I have followed the explicit and step-by-step actions at http://klenwell.com/is/UbuntuCommandLineGmail
Question: Upon completion, when trying to send a test email to myself via gmail (from CLI) I get the following error: "msmtp: no recipients found". In CLI below it asks me to explicitly pick a mailx to download. I think I already have mailx as when I type mailx I get "no mail for primary".
Here is my work Code: :~$ sudo apt-get install msmtp mailx [sudo] password for: Reading package lists... Done Building dependency tree Reading state information... Done msmtp is already the newest version. Package mailx is a virtual package provided by: mailutils 1:2.1+dfsg1-4ubuntu1 heirloom-mailx 12.4-1.1 bsd-mailx 8.1.2-0.20090911cvs-2ubuntu1
You should explicitly select one to install. E: Package mailx has no installation candidate :~$ gedit ~/.msmtprc :~$ chmod 600 ~/.msmtprc :~$ gedit ~/.mailrc :~$ echo -e "testing email from the command line" > /tmp/test_email :~$ mailx -s "mailx gmail test" xxxxxxx@gmail.com < /tmp/test_email msmtp: no recipients found
Here is ~/.msmtprc Code: # config options: [URL]#A-user-configuration-file defaults logfile /tmp/msmtp.log # gmail account #account gmail auth on host smtp.gmail.com port 587 user xxxxxx@gmail.com password xxxxxx from xxxxxx@gmail.com tls on tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt # set default account to use (not necessary with single account) #account default : gmail and here is ~/.mailrc
Code: # set smtp for mailx # gmail account (default) # $ mailx -s "subject line" -a /path/attachment recipient@email.com < /path/body.txt set from="xxxxxx@gmail.com (xxxxx)" set sendmail="/usr/bin/msmtp" set message-sendmail-extra-arguments="-a gmail"
I'm running a desktop-less version of Debian via Sun VirtualBox. The reason I'm doing this is because I don't have enough graphics or RAM power to have a desktop environment running on top of my current desktop; also, I want to learn Linux through the command prompt. I'm running the AMD64 version of Debian; I'm not sure if that's relevant.
My main goal is to be able to email useful files from the virtual Debian to my main computer, so that I can save them for later if I ever decide to do a "real" installation of Debian on this computer. I realize now that there's probably some "easy" way to do this by reading the virtual machine's hard drive, but at this point, my curiosity wants to see this issue resolved. I started off wanting to find a command-line program to send my email with, and one was built-in. The syntax ~$ sudo mail -s "Subject" email@yahoo.com "This is a test email."
C^D Cc:C^D ~$
is what I found. I tried it, and (unsurprisingly), it failed. I then learned that the mail command calls exim4, or something along those lines, so I needed to configure exim4. Soon thereafter, I learned that Yahoo's SMTP wasn't public, but Google's was. So, I found this web page which described how to configure exim4 to allow for email to be sent to a Gmail account. I made one, and followed the page word-for-word.
I sudo-mailled a test email to my Gmail account, and nothing happened. I waited a bit longer, and still, nothing happened. Finally, I started looking around, and found out about the exim4 logs in /var/log/exim4. In my mainlog, I think that it's telling me that Google denied my connection: <date><time><random numbers and letters> == **********.gmail.com R=send_via_gmail t=gmail_smtp defer (111): Connection refused
So, now, I'm just stuck. I don't know what I did wrong, I checked my exim4.conf.template twice for spelling errors, but I don't think I made any. At this point, I can only hope that someone else has had a similar problem, or knows what I'm doing wrong (or haven't done yet).
I've just setup a new Ubuntu 10.04 LTS server on linode for myself. Followed an excellent instruction at: here to finish the installation of some basic stuff including postfix.
I am trying to figure out a way to send an email to my gmail address with an attachment, but cannot find how. Already confirmed that email can reach my gmail account.
In the end I have to use mutt to send the email with attachments, probably SendEmails will also do well, but I am wondering how to do the same thing in postfix from command-line?
i am working on a neat little bash script, and i want the output to be mailed to my email account. So far i have tried installing sendmail then running: mail -s Test myemail@gmail.com But that hasn't worked; and i did check my spam folder. Am i missing something or is there a better technique all together?
Is there a way to send an email from a batch script. I want to send the output from a script to an email address, possibly a couple of email addresses depending on the output.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
I have an issue with sendmail. I need to configure sendmail to send email from command prompt to any domain. This is just for the notification purpose. I installed sendmail and sendmail-cf and sm-client. The following are the configuration I have done.
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.
I'm new here but have been using different distros for a couple of years. I ran into this problem like a year ago for the first time and I really would like to solve this ( with your help now). I've already used hours trying to figure this out and seeked solutions online. So first things first:
- I want to connect to a wireless access point from CLI (for many different reasons) - I'm using Fedora 13 with KDE and Gnome some specs:
Ive been struggling to configure a wireless interface on Fedora 9I need to configure wlan0 command line only with NO display managerIve tried setting up /etc/sysconfig/network-scripts/ifcfg-wlan0 with the right information, doing dhcpbut no ip is retrieved. Checking the dhcp server logs on the DHCP server - no request is received.The link light on the wireless nic is not on either. iwconfig shows it has an Access point associated and an ESSID but im not getting back any IP.There seems to be very little documenta on how to set up wireless nics command line only on Fedora
I am fairly familiar with Linux but had never ventured into Wlan settings / options / too much. I have compatible card (aetheros) and when running - iwlist wlan0 scanning - I get plenty networks showing up - meaning the card works. When I installed distro which is last night (before I ran update), I had that little bars menu at the top of the screen that showed available networks once clicked upon. Since I like to modify and make my settings better - I removed that little AT&T like bar, and now rebooted after update to find that I can not see available networks unless I use iwliset wlan0 scanning.... .#$*&)@&#(&%# - need I say more.
Two questions - how do you connect to the wireless network via command line? What is that vertical bars GUI tool called so I can find it and run it again? Is there (for the love of god) alternative to system-config-network GUI managment tool for wlan?
I'm tryn' to connect to my wireless network using command line:iwconfig wlan0 essid MY_NETWORK as root.
After this typingiwconfig wlan0 result is: wlan0 IEEE 802.11g ESSID:off/any Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated Bit Rate:1 Mb/s
[Code]....
I installed ndiswrapper in order to use ipn2200 WinXp drivers.
How to enable automatic DHCP on Fedora15, in network settings, i chose method Automatic DHCP on IPv4 settings and in proxy settings , i chose method as automatic. However, it is not working.
I set up Samba using command line terminal, and my network does not work. I have Samba username and keyring passwords all set, then I go to gui system-config-samba, and my samba user profile password is incorrect. In the past, I have used a 10 letter password, however, every time I boot the computer, I have to go back in and re-enter the password.I wonder if samba is truncating the password because it only accepts an 8 character password? I have deleted the user, and added a new username, and it is still doing it.
If I go into the gui and re-enter the password, usually I can get the network back up with my windows machine. All of the parameters are correct, I use the network to transfer files from my Windows to my Fedora drive all of the time when it works.
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)?
F10 trying to key in static ip address. Have followed guidelines on turningoff NetworkManager and turning on network. i went to command line and did a couple of chkconfig things and entered ip address, with subnet. when i do ip addr show i see under eth0 inet 192.168.3.11/32 which is 255.255.255.0, i'm pretty sure. i do not see gateway. when i go to system/network get prompted to log into root, network config window opens. icheck eth0 and the subnet mask is 192.168.3.1, the gateway, which is in correctly, in the gateway slot, as well. i still can not ping to from my xp based multihomed router.
The GUI for network configuration of Fedora is marvellous such that the configuration is almost fool-proof. But how can I make the connection by hand in the command line mode? It goes okay except the very last step. When I disconnect the eth0 interface from the right-hand side of the desktop GUI, I tested how to bring it back by command line but I failed. When disconnected, the ifconfig still shows the eth0 interface, with just the ip address portion changed.
I tried "ifconfig eth0 192.168.1.xx" to give it an ip address but the connection is still down even if the ifconfig shows an ip address for the eth0 interface. Then I tried "/etc/init.d/network restart" and "ifup eth0" and also "route add defaut gw 192.168.1.1" but none of these could accomplish the same work as a single click on the GUI to connect. I am very curious about how to do it in the terminal.
How do I fix this stunnel error in Fedora 15(LoveLock)? I previously have been able to run stunnel in Fedora 14 and had stunnel up and running. Just recently moved to Fedora 15 LoveLock and now stunnel returns the following fail mesage when I try to restart stunnel.# /etc/init.d/stunnel startStarting stunnel (via systemctl): Job failed. See system logs and 'systemctl status' for details.Does anyone know What changed or how to fix this fail error?
I have 2 services registered one for HAProxy and one for stunnel. When I type service start haproxy or service start stunnel they start and everything works fine. I ran ntsysv and they are set as autostart, and I have init.d scripts that work. I have checked the runlevel and using chkconfig runlevel 3, 4 and 5 are :on. And I also added service haproxy start and service stunnel start to inittab. But when I restart the computer haproxy and stunnel fail to autostart. I am a fedora novice and I have no idea why this isn't working...
In my Windows environment, I use email client such as Microsoft Outlook to connect to our email server to send email with the following configuration:
Incoming server (POP3): 995 - (requires with SSL) Outgoing server (SMTP): 465 - (use encrypted connection SSL)
[code]....
And the mail server requires user ID login and password.how do I setup a text command based email client in my Linux (Centos 5.1) to send out email through the existing email server above, which is in another machine? The email client has to be text command based because I need to use command line to send notification email from anothar application installed in my Linux (Centos 5.1) Since the email client will only be used to send email notification, I don't require setting up of an email server in my linux.
Using CentOS. I have a cron setup to run this command: Code: /var/test.sh | mail -s "Test Cron" mr182@somewhere.com The email is sent but the output of the script is not in the email body, it's just blank. I know there is some output because there are some echo statements in the script.I don't want to get an email for all cronjobs, just this one.
I have an older laptop on which I have installed Fedora Core 10 (2.6.27.5-117.fc10.i686). I am using a Retail Plus Mini Wireless USB Adapter. I have scanned this forum and someone mentioned that support for this adapter should come "out of the box" for FC10. I have a fair amount of experience with Linux command line configuration but am by no means an expert. I have absolutely no experience, however, with wireless.
NB that via iwconfig I get the output below which is giving information about my (currently for now unencrypted) SSID called "activity_logged". Pardon my ignorance but wouldn't this mean that I have wireless enabled and if so how does one access it through the command line? I would also eventually like to go back to encrypted status and access that via command line.