12-17-2007
mail command woth Postfix
Hi, maybe someone could help me.
This is the thing. I usually use the command "mail" on my scripts to send me info about the linux box, something like:
df -k | mail -s "disk usage"
lalala@lalala.com.
This works fine in all the linuxes that sendmail is installed, but there is one with Postfix that doesn't work.
I think is 'cause the mail command is from sendmail and not from Postfix. If this is true, I wanted to know if Postfix has some command similar to "mail"
Thanks. (I hope my questions is clear enough)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi folks!
I have a Postfix email server running on my MacOs x box.
I would like to customize this automatic message to portuguese language:
============
This is the Postfix program at host myserver.com.
I'm sorry to have to inform you that the message returned
below could not... (4 Replies)
Discussion started by: fundidor
4 Replies
2. Ubuntu
We have a redhat enterprise linux 4 server.we have configured postfix as our MTA.squirrel mail as webmail and apache is configured for webserver.We configured outlook as mail client.The mail server is working and our users ae saving a copy of mail in the linux server.Our problem is whenever the... (0 Replies)
Discussion started by: ramjimh
0 Replies
3. IP Networking
hi all.
Am using smtpd_recipient_restrictions & check_recipient_access in postfix.
The hash file looks like this:
emailaddress1 HOLD
emailaddress2 HOLD
The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies
4. Red Hat
Hi ,
I am a complete newbie to linux, I have been given a job to install a mail solution (postfix if possible) I would like to know how should I go about installing..)
Can any one provide me some steps to go about it..
i have read about postfix and the installation steps, it seems there are... (1 Reply)
Discussion started by: anilhk
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have email that is being routed from one server to another server it seems.
The sending server has postfix running and the receiving server has sendmail running. The sendmail status is receiving connection. The sending server cannot seem to reach the receiving server. Error logs state... (0 Replies)
Discussion started by: mojoman
0 Replies
6. Emergency UNIX and Linux Support
i have configured mail server with postfix with dovecot with no encryption:
When connecting with Thunderbird imap is working fine. when sending email from another domain to this domain again it is fine. but when i want to send mail frommy domain to another it gives me error and this is... (3 Replies)
Discussion started by: majid.merkava
3 Replies
7. UNIX for Dummies Questions & Answers
im able to install postfix on my ubuntu server. no issues. but ican't send mail.
i dont know what to put for the "relayhost". i've googled this endlessly but i'm clueless. isn't there a general smart host i can use that'll allow me to send?
i dont care for receiving mail. i just want to be... (1 Reply)
Discussion started by: SkySmart
1 Replies
8. Red Hat
Hello,
We have been looking for ways of implementing some redundancy on our postfix gateways in our company. We have 4 Postfix Gateways.
mail2.domain.ro 10
mail.domain.ro 20
mail1.domain.ro 30
mail3.domain.ro 40
On nslookup we have like this:
domain.ro MX preference = 10,... (0 Replies)
Discussion started by: panaitescuionel
0 Replies
9. UNIX for Advanced & Expert Users
Hello,
We have 2 servers, server A and Server B in same domain. I have already configured the Serevr A to send an email to the internet (outside domain) by opening the port 25 to the internet.
Now I need to send an email to the outside domain from Server B using server A. I have opened the... (1 Reply)
Discussion started by: sathishbabu89
1 Replies
10. Red Hat
I am trying to setup the postfix email server on Redhat Linux 6.5 running as an EC2 instance in AWS. I can do reverse port mapping to open a port
from our internal network to the AWS linux server, so we should be able to get to our mail server, even though it is a one way path from our internal ... (1 Reply)
Discussion started by: gandolf989
1 Replies
PUSH(8) BSD System Manager's Manual PUSH(8)
NAME
push -- fetch mail via POP
SYNOPSIS
push [-5 | --krb5] [-v | --verbose] [-f | --fork] [-l | --leave] [--from] [-c | --count] [--headers=headers] [-p port-spec |
--port=port-spec] po-box filename
DESCRIPTION
push retrieves mail from the post office box po-box, and stores the mail in mbox format in filename. The po-box can have any of the follow-
ing formats:
'hostname:username'
'po:hostname:username'
'username@hostname'
'po:username@hostname'
'hostname'
'po:username'
If no username is specified, push assumes that it's the same as on the local machine; hostname defaults to the value of the MAILHOST environ-
ment variable.
Supported options:
-5, --krb5
use Kerberos 5 (if compiled with support for Kerberos 5)
-f, --fork
fork before starting to delete messages
-l, --leave
don't delete fetched mail
--from behave like from.
-c, --count
first print how many messages and bytes there are.
--headers=headers
a list of comma-separated headers that should get printed.
-p port-spec, --port=port-spec
use this port instead of the default 'kpop' or '1109'.
The default is to first try Kerberos 5 authentication and then, if that fails, Kerberos 4.
ENVIRONMENT
MAILHOST
points to the post office, if no other hostname is specified.
EXAMPLES
$ push cornfield:roosta ~/.emacs-mail-crash-box
tries to fetch mail for the user roosta from the post office at ``cornfield'', and stores the mail in ~/.emacs-mail-crash-box (you are using
Gnus, aren't you?)
$ push --from -5 havregryn
tries to fetch From: lines for current user at post office ``havregryn'' using Kerberos 5.
SEE ALSO
from(1), pfrom(1), movemail(8), popper(8)
HISTORY
push was written while waiting for movemail to finish getting the mail.
HEIMDAL
May 31, 1998 HEIMDAL