Tag Info

New answers tagged

2

If you have control over your MTA (e.g. local Postfix), you may use smtpd_recipient_restrictions to restrict the domains to which emails may be sent. First, create your whitelist file (let's say, /etc/postfix/recipient_domains) : hotmail.com OK gmail.com OK talktalk.net OK Generate the hash file for it... $ postmap ...


0

Often you can look at the headers of the bounced mail about what has gone (wrong) under way, how far the mail got and which machine rejected it (or was offline). If you have access to the sending and/or receiving machine's /var/log/mail.log check those for messages to make you start looking for possible configuration problems on the right machine. Looking ...


2

If you want to send email to a user at an IP address, you need to enclose the address in brackets, e.g. dest_user@[ip.ad.dr.ess]. Whether that addressing will be accepted by the receiving server is another issue. My mail servers don't accept email addressed to it IP address.


0

There seems to be a number of false assumptions here but the short and pointed answer is that your Postfix configuration is hosed and needs to be corrected. With the information you provide, I can't tell you how. Perhaps update your question to include pertinent snippets from your Postfix config (or maybe post a new, better focused question, and delete ...


1

Your failover system must have some network characteristic that distinguishes it from the real one. Unless you have an especially complex setup, the two servers have different IP addresses. On the recipient machine, check the earliest (last) Received: header: this header indicates which machine sent the email (from the perspective of the first hop). Use a ...


0

I'm not sure which distribution you're using, but very often cron scripts will run with a minimal shell with less "fanciness" than an interactive shell. Is this your entire script? If so, you should add a shebang to load some proper context. Also, it helps to use the fully-qualified path for things other than builtin shell commands. For example, find may be ...


1

Change the 'From' text by editing /etc/passwd to receive mail from 'root at failover' instead of just 'root'. chfn -f 'root at failover' root source: https://wiki.archlinux.org/index.php/SSMTP



Top 50 recent answers are included