I want to send mail with a bash script.
I look on the internet what I have to do.
I installed exim4 and mailutils.
than I do sudo echo "Yay - SMTP works" | mail -s "Test email" mail-address"
but the mail wasn't sent.
I find this sudo dpkg-reconfigure exim4-config
but I don't know what I must fill in this.
I find also netstat -ano |grep :25 and
the output is
If someone know what I must do for to have this working
thanks anyway
Last edited by methyl; 08-27-2012 at 08:08 PM..
Reason: Code tags; more code tags; correct some grammar for readability
I may not be able to help you, but please post the following basic information:
1) Operating System and version.
2) What Shell you use.
3) Whether mail within the computer works.
I suppose your MTA (exim) is not correctly configured. How this has to be done depends so much on your network and its configuration that it is not possible to give some generalized answer.
Please answer specific questions and we can answer specifically.
In the meantime you might be interested in a little introduction about how the mail system works in general i wrote a few days ago.
I need to send mail using different gmail smtp logins, depending on the from header. I can put the appropriate expression in dc_smarthost to generate the host, but I don't know how to specify the login id. The login id comes from passwd.client and is associated with the server name. According to... (1 Reply)
I have just had to fix a debian5 system which suddenly started rejecting correctly addressed emails as '550 relay not permitted.' It turned out that rogue exim4 config files had been injected into the system at /etc/exim4/exim4.conf and /etc/exim4/exim.conf and these were messing up mail routing.
... (0 Replies)
I have restarted the exim4 process.
It prints the following things.
$ /etc/init.d/exim4 restart
* Stopping MTA for restart
/usr/sbin/update-exim4.conf: non-ascii value sugumar_imp.tar write.sql
virtualbox-3.1_3.1.8-61349~debian~lenny_i386.deb
etc...
...done.
* Restarting MTA
... (1 Reply)
I have exim4 smtp server running on Debian. I tend to use only one user account to login. The machine is running multiple websites and I have assigned unique email addresses for each of the websites.
Emails sent to these addresses do not seem to get delivered. Emails sent to the alias that I... (0 Replies)
This seems to be a rather constant question that pops up on a lot of forums but as of yet I have not found a complete solutions on any of the forums so I'm asking everyone who might know about this in an attempt to find a complete solution for this:
I have bought 3 domain names and they all... (0 Replies)
Hi,
I am new in exim. I am trying to configure a debian server running exim4 such that it relays only mails to our domain (@abcd.de).The exim server uses a smarthost for relaying. I do not get it to block outgoing mails to domains different from ours (i.e. with the "standard" configuration it... (0 Replies)