Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to send an email to my gmail account by this command
Code:
sendmail user@example.com < /wall.txt
wall.txt input:
Hi it's me
bye
anyhow, at first it gave me this error:
postconf: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol.
So I change inet protocols in /etc/postfix/main.cf from "all" to "ipv4" and ran a restart
Code:
service postfix restart
After the restart, I used my sendmail command again and it didn't give any error but I also didn't receive any email.
I tried to use other commands like mail, mailx to no avail.
Any help?
Thank you.
On my server, the log file is /var/log/maillog. Could be configured differently on yours, but it should be your first step to check the mail log. Perhaps also the system log.
Dear all,
I am trying to send an email to my gmail account by this command
Code:
sendmail user@example.com < /wall.txt
wall.txt input:
Hi it's me
bye
anyhow, at first it gave me this error:
postconf: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol.
So I change inet protocols in /etc/postfix/main.cf from "all" to "ipv4" and ran a restart
Code:
service postfix restart
After the restart, I used my sendmail command again and it didn't give any error but I also didn't receive any email.
I tried to use other commands like mail, mailx to no avail.
Have you ever been able to send mail from this server?? How do you have postfix configured to relay mail upstream to another server/host? Because unless you're running your own mail server (which is an ENORMOUSLY complicated task), you need to tell postfix to send mail onwards to another system that can handle and deliver it. Otherwise, mail won't go anywhere.
You don't tell us anything about your environment, what other servers are in play, your network, etc., so there's not a lot we can tell you. There are many how-to guides on how to easily configure Postfix to use Gmail as a relay host as well. But if you're in a business environment, chances are they already have an internal relay server that you can point systems to.
Have you ever been able to send mail from this server?? How do you have postfix configured to relay mail upstream to another server/host? Because unless you're running your own mail server (which is an ENORMOUSLY complicated task), you need to tell postfix to send mail onwards to another system that can handle and deliver it. Otherwise, mail won't go anywhere.
You don't tell us anything about your environment, what other servers are in play, your network, etc., so there's not a lot we can tell you. There are many how-to guides on how to easily configure Postfix to use Gmail as a relay host as well. But if you're in a business environment, chances are they already have an internal relay server that you can point systems to.
Apparently every thing worked properly, the emails were recieved in my spam folder but I didn't pay attention.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.