Questions tagged [mailx]

6 questions
5
votes
2 answers

Postfix is not rejecting recipients addresses when mailx is used

I have a problem with postfix to reject outgoing email for some address in blacklist. This is my configure /etc/postfix/main.cf: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/bad_recipients, permit_mynetworks,…
Phong Đặng
  • 53
  • 1
  • 5
1
vote
1 answer

mailx default FROM: address

I'm setting up email alert for unattended upgrades on ubuntu 18.04. It looks like unattended-upgrades cannot set the 'FROM' address and rely on mailx. On mailx I'm using SMTP so the from address must be qualified. I get error that the from address…
Niro
  • 1,371
  • 3
  • 17
  • 35
1
vote
1 answer

How do I stop mailx from triggering Postfix's mail delivery report?

I have a script that needs to send emails to notify about system events and status - a pretty common use-case, I'd think - and I chose to use mailx for this (why I no longer remember) on my Fedora Server system. Everything was just fine and dandy…
Richard T
  • 1,130
  • 11
  • 26
1
vote
0 answers

Postfix "greeted me with my own hostname" only when `mail` command, works fine over smtp

Edit: Please note that unlike many other similar questions, this configuration works perfectly when the message is received via smtp. The problem is only when its sent via the mail command. The virtual_alias_domains and DNS are appear to be…
jaydisc
  • 459
  • 1
  • 7
  • 19
0
votes
1 answer

Trying to send mail through mailx and postfix, but receiving nothing in inbox

I'm trying to set up a type of notification system that will alert me when my website is down using crontab and mailx. I went ahead and installed mailx on my server and then tried to send a simple test email by doing: mail -s "Testing" myemail.com…
Michael
  • 101
0
votes
1 answer

mailx does not run using crontab

I have a script which sends emails. It works perfectly when run manually but I doesn't work when run with crontab: #!/bin/bash cat $HOME/myfolder/mailbody | /bin/mailx -v -s "mymail" -a file.txt xxx.yyy@zzz.com > $HOME/myfolder/script.log When run…