LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mail help (https://www.linuxquestions.org/questions/linux-newbie-8/mail-help-629222/)

i_nomad 03-19-2008 10:54 AM

Mail help
 
I am completely new to Linux so please excuse me...I have red hat linux es4.

I have inherited a server that has postfix and cyrus-imap installed.
I have a registered domain.
I can and want to use imap at the client end to read mail messages.
I can send mail to various mailboxes on the mail server from external domains. However the SMTP does not appear to be enabled to send out to external domains.
I want to open up the SMTP both ways securely.
I have access to webmin to access key areas of the programs.

Whats steps should I take to be able to send out from the mail server.

i_nomad 03-20-2008 02:55 AM

Go on some one give me a hint.

smtp port is open.
IMAP is downloading fine.
Cant send external.

In postfix/main.cf

readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
myorigin = $mydomain
myhostname = mail.XXXX.com
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, XXXX.com, XXXX.local
mydomain = XXX.com
mynetworks = 127.0.0.0/8 10.10.0.0/16 10.11.0.0/16 10.12.0.0/16
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination

I guess the last line is key?? smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination
What should I do to proceed?

Kind Regards

billymayday 03-20-2008 03:50 AM

smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination

should be

smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

- note the comma

But thisd isn't stopping you sending

First question, do you know if your ISP allows you to send directly on port 25 (the smtp port)? If they don't or you aren't sure, you should be able to relay through your ISP's smtp server. Suppose their server is smtp.yourISP.com, then simple set

relayhost = smtp.yourISP.com

in main.cf and run postfix reload


All times are GMT -5. The time now is 01:49 AM.