Hot answers tagged

34

It may take more than one step to fix this issue Take the step mentioned earlier. Log into your google email account and then go to this link: https://www.google.com/settings/security/lesssecureapps and set "Access for less secure apps" to ON. Test to see if your issue is resolved. If it isn't resolved, as it wasn't for me, continue to Step #2. Go to ...


23

Simply changed: 127.0.0.1 localhost localhost.localdomain 127.0.0.1 foo.bar To this 127.0.0.1 localhost localhost.localdomain foo.bar Sendmail looks for a fully qualified domain (FQDN) name and will use the localhost.localdomain in the single line version.


23

Where are the logs? The default location depends on your linux/unix system, but the most common places are /var/log/maillog /var/log/mail.log /var/adm/maillog /var/adm/syslog/mail.log If it's not there, look up /etc/syslog.conf. You should see something like this mail.* -/var/log/maillog sendmail writes logs to the mail facility of syslog. ...


23

What I did to disable local delivery. I'll be using the example.com domain. Requirements: example.com A entry pointing to IP address assigned to one of the eth interfaces. /etc/hosts defining example.com assigned to the very same IP address as above example.com MX records pointing to Google servers (ASPMX.L.GOOGLE.COM, etc) default sendmail installation (...


21

Perhaps you've installed sendmail by using the sendmail-bin individual package instead of installing the sendmail wrapper package. Anyway, if you install sensible-mda (or the sendmail wrapper package), the problem you're seeing should disappear.


20

check /var/log/maillog or /var/log/messages if you're on *nix Also, if nothing is going out you may want to check your firewall as follows (be sure to do this as root): [root@web01 ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:...


18

Sendmail is a different (and much older) program from Postfix. However for every mail server to succeed in the Unix environment, a sendmail binary (with some of the expected command line options) must be provided. EDIT: See for example the manual page for the sendmail program provided by Postfix


18

Some background Postfix inherited some features from older sendmail like milter and aliases. The file /etc/aliases is part of aliases inheritance and implemented by alias_maps. On the other side, postfix has virtual_maps/virtual_alias_maps for handle email aliasing. So what's the difference between them? Parameter alias_maps Used only for local(8) ...


17

Queued messages are stored in /var/spool/mqueue. So try this (I assume you want to get rid of all messages in the queue): Stop sendmail rm -rf /var/spool/mqueue/* (might be called mqueue-client on Ubuntu) Start sendmail


17

Instead of using /root/.forward, have you tried putting root: me@batcavern.com into /etc/aliases? (Note that you need to run newaliases after updating the aliases file.)


15

sendmail relies on the retry mechanisms in the SMTP protocol for reliability of delivery and does not need to depend on a clever server implementation. Which is why that doesn't exist as far as I know. When you restart sendmail simply aborts any incoming connections with a temporary error and sends a 421 response expecting the delivery to be retried later ...


14

Mail will be marked as spam by major ISPs (including webmail providers like gmail, hotmail, yahoo) for several possible reasons: If you're sending it from a residential IP address If you're sending it from an IP address with a poor reputation If you're sending mail which matches certain patterns (these are hard to describe, but software looks for things ...


14

One consequence of removing the MTA is that mail generated by the system itself (usually sent to root), for example by Cron, Logwatch, rkhunter and others cannot be be delivered. So yes, an MTA is an integral part of any Unix-like system and I doubt Debian will let you uninstall the MTA without complaining and suggesting an alternative. But it's not a big ...


13

The postfix documentation tells you exactly what you need to do.


13

Sendmail: short host name to FQDN via /etc/hosts entry Reorder your /etc/hosts file entries: 127.0.0.1 localhost localhost.localdomain 127.0.1.1 myhost.mydomain.eu myhost.domain2.eu myhost It should qualify myhost to myhost.mydomain.eu (the leftmost name in /etc/hosts line with myhost)


13

The service --status-all command tries to figure out for every init script in /etc/init.d if it supports a status command (by grepping the script for status). If it doesn't find that string it will print [ ? ] for that service. Otherwise it will run /etc/init.d/$application status. If the return code is 0 it prints [ + ]. If it's not 0 it prints [ - ]. ...


12

formail, part of procmail (and probably already available on your system) can take a mailbox, split it up into messages, and then run a command on each one. From the man page: -s The input will be split up into separate mail messages, and piped into a program one by one (a new program is started for every part). -s has to be the ...


12

Well, if I understand RFC 822, they are legal in certain cases, I think it's an artifact from the days of small screens with 24x80 resolutions.. These sections seem to be fairly clear Subjects can be folded, and folding is a CRLF plus LWSP(linear white space) character.. it's possible they've been supeseded, Wietse (on the postfix lists) knows his RFCs ...


11

You have specified answer in the question itself. You can do that using define(`SMART_HOST', `smtp.your.provider')dnl Are you facing any problem using this. After editing /etc/mail/sendmail.mc you should go to directory /etc/mail. Type make and then restart sendmail service for changes to take effect. Then send a test mail and see message headers (...


11

/bin/mail -s "Enter Subject Line here" -a /home/.../whateverFileYouWantAttached "you@YourEmailAddress" < /home/me/textBody.letter try above command :)


10

On Debian-based systems exim logs data in /var/log/exim4/mainlog. You might find the eximstats tool useful for parsing and culling useful information out of that log file.


10

I added the following in sendmail.mc: define(`confDOMAIN_NAME', `mail.foo.com')dnl and then: m4 sendmail.mc > sendmail.cf service sendmail restart I also verified that this worked with the email verifier service at http://www.port25.com/domainkeys/ (auth-results@verifier.port25.com). Neat service, you send it an email and it replies to the from ...


10

TL;DR: Your webmail program is badly written and thinks that the response code 354 is an error, even though it isn't. Long answer: This is what the SMTP conversation looks like (S = server, C = client) S: 220 foo.com Simple Mail Transfer Service Ready C: EHLO bar.com S: 250-foo.com greets bar.com S: 250-8BITMIME S: 250-SIZE S: 250-DSN S: ...


10

There's a subtle but important difference between dnl and # here. dnl means "delete through newline". When you process your sendmail.mc into a sendmail.cf using m4 (or possibly some frontend), the characters dnl and everything following them, including the next newline, will be dropped. (And all of those lines end with dnl to suppress extra blank lines in ...


9

The system load average is a performance metric used to represent how much work a system is doing. When you log into your mail server (assuming a UNIX type system), you can type the uptime command to see the load average over the last minute, 5 minutes, and 15 minutes. Here's an example from a production server: sh$ uptime 10:53am up 248 day(s), 36 min(s),...


9

Make sure that mail server MX record is referring has A record, CNAME is not enough. This is important but I do no remember why. Here is an example: $ORIGIN example.com. @ IN SOA dns0.yourisp.com. zone.yourisp.com. 1308717736 21600 7200 1209600 10800 @ IN NS dns1.yourisp.com. @ IN NS dns2.yourisp.com. @ IN MX 10 mail.example....


9

You're not actually receiving traffic on port 25, but on port 80, via your web server. This traffic is attempting to use your server as a proxy to disguise the origin of the traffic. We generally call such servers open proxies, and they're quite useful for delivering spam and conducting attacks on other sites. For some reason, some people seem to think ...


9

According to the man page for cron(8) (the daemon that actually sends the message): -m This option allows you to specify a shell command string to use for sending cron mail output instead of sendmail(8). This command must accept a fully formatted mail message (with headers) on stdin and send it as a mail message to ...


9

CentOS 6 comes with Postfix as default mail server and you can see it running (tcp :25 1186/master). Try to stop Postfix (service postfix stop) and then start sendmail (service sendmail start).


9

This is because after a recent update to openssl on CentOS 6, openssl-1.0.1e-30.el6.11.x86_64, programs using this library started to refuse connecting to servers vulnerable to Logjam TLS vulnerability. You need to configure sendmail to use stronger temporary Diffie–Hellman key — at least 1024 bit. It is not the same key that you use in your TLS certificate,...



Only top voted, non community-wiki answers of a minimum length are eligible