Ubuntu Servers :: Can't Send Email To External Domains

Jan 9, 2010

I've set up a mail server using Postfix + dovecot. It works just fine sending email to users in my domain. However, I can't send email to external domains (like gmail, yahoo, etc) different than mine. I've tried sending from a remote connection using Evolution and I get the following message on mail.log

Jan 8 10:45:20 mail postfix/smtpd[14911]: connect from unknown[]
Jan 8 10:45:21 mail postfix/smtpd[14911]: NOQUEUE: reject: RCPT from unknown[]: 550 5.1.1 <lobomacz@gmail.com>: Recipient address rejected: User unknown in local recipient table; from=<user@mydomain.com> to=<lobomacz@gmail.com> proto=ESMTP helo=<[10.24.4.230]>

[Code].....

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Sendmail Can Only Send To External Domains

Jun 15, 2011

When I use sendmail (or, most commonly, a PHP or Perl script uses it) to send to any other domain except my own, it works great. When I use it to send to my own domain, however, it's trying to deliver it to localhost. Problem is, all our mail is handled by an Exchange server on a different machine, so I really don't want If I run sendmail manually for a test message to myself, here's how it comes up after the message is closed out:

Code:

echo "Subject: test" | /usr/sbin/sendmail -v me@domain.com
354 Enter mail, end with "." on a line by itself
>>> .
050 <me@domain.com>... Connecting to local...

[code]...

The message then gets dropped into my box at /var/mail/xxxx, but that's really not helpful to me -- I need to to connect to that other machine to deliver the mail there. This machine isn't used as a mail server at all. Also, if it's trying to send to a username that doesn't have an account on this server (we have many), it just fails entirely with "user unknown" (that makes sense, as there are only a couple of user accounts on the web server). how to get sendmail to connect to our mail server instead of "local"?

View 4 Replies View Related

General :: Send Mail From Domain As A User That Does Not Exist As Well As Email From Other Non-existent Domains

Jul 31, 2010

I have a server with a static IP that I use as a sendmail server. The problem is that port 25 is exposed. As a result, anybody can login to the SMTP server and send mail from my domain as a user that does not exist as well as email from other non-existant domains. I'm sure there are sendmail options that I can enable to do some checks, like if the user exists on that server or if the domain is the same on the server, etc. I was wondering if you guys can mention a few that I can add to my sendmail.mc file?

I have thought about auth login, the problem is if auth login is on my public port then I won't be able to receive email from gmail because it would be unauthenticated. Also, I only have 1 mail server. I know the ideal solution is to have 2 mail servers. One for outgoing mail/internal mail server where you can enable auth login and the other for incoming mail which just acts as the relay to the internal mail server. That way spammers can't login to send mail out. That's another question I had, how do I configure sendmail to only send email out/in?

Anyhow, so I have to make do with 1 mail server for now. So I decided to add a few rules on iptables. I grabbed the IP range that gmail uses when I receive mail from then and added it to my iptables with the following command.

[Code]....

View 2 Replies View Related

Ubuntu Servers :: Postfix Configuration - Send Mail To Other Domains

Nov 5, 2010

Let me start off by saying I am experienced with computers, though my knowledge of Linux and networking is limited. I've just recently started setting up a Ubuntu 10.04 server to be a SMTP server. I've followed this guide by the letter: [URL] What I've attempted, to test the server, is the following:

telnet localhost 25
ehlo localhost

(this returns all the desired information) I then do a MAIL FROM my domain which is accepted, and try to do a RCPT TO an external mail server (gmail) to test sending an email. I am then told 'Relay Access Denied'. I'm sure that there's something fundamental that I'm either not understanding or not doing correctly. I simply want an SMTP server that can send to other domains. What do I need to do?

View 1 Replies View Related

Ubuntu Servers :: Configure To Send And Receive Mail From Multiple Sub Domains Of Domain?

Jun 14, 2011

I want to configure a single mail server to send and receive mail from multiple sub domains of my domain. I've already installed Postfix/Dovecot and it is perfectly working for mydomain.com. And also installed roundcube for Web Mail. Can I further customize this setup to process mail to sub domains? ex- someone@subdomain1.mydomain.com, someone@subdomain2.mydomain.com, someone2@subdomain1.mydomain.com (someone@subdomain1.mydomain.com and someone@subdomain2.mydomain.com are 2 separate users. they should be able to log on to web interface separately)

Currently i use system account names as email user names. (ex - systemusername@mydomain.com). The only MX record in my domain DNS pointed to current server (mailhost.mydomain.com). I read about postfix virtual domains. but couldnt figure out how to use it to achive my target. I do not need configuration details. Just explain me the way to do it. I can do the rest my self.

View 1 Replies View Related

Ubuntu Servers :: Postfix Not Relaying To External Domains?

Jan 16, 2010

I'm having a problem with a new install of postfix... it won't relay mail to external domains. Internal mail is fine.I'm using virtual_mailbox_domains so that I can have multiple domains, and I've set dovecot to use local files with encrypted passwords.Here's my main.cf

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

[code]....

View 2 Replies View Related

Ubuntu Servers :: Send Email From PHP Using Pear

Jun 16, 2010

I host a webpage from my PC, and I was having all kinds of issues trying to get it to send emails. These steps send and receive the email through a gmail account. This page saved me.

Here are the simple steps
0. get a gmail account
1. install pear
Code:
sudo apt-get install php-pear

2. Install pear packages:
(I'm not really sure what this does, but I did it, and everything is working)
Code:
sudo pear install -o Mail
sudo pear install -o Net_SMTP

3. run php script to send email.
Code:
<?php
// Include the Mail package
require "Mail.php";
// Identify the sender, recipient, mail subject, and body .....

View 4 Replies View Related

Ubuntu Servers :: How To Use Html Type To Send Email

Nov 24, 2010

I can only use plain text to send email via my postfix, how can I use html type to send email, is it something wrong?

View 4 Replies View Related

Red Hat :: Servers Don't Send Out A Daily Logwatch Email?

May 9, 2010

Gidday, for some reason some of my RHEL servers don't send out a daily logwatch email (most do, but two don't) - and sadly I have no idea how to troubleshoot this.

Can anybody give some help/hints as to where/how I may troubleshoot this. I should add that these servers can/do send emails (I have some cronjobs that fire off emails upon completion of their jobs, so I know its not a sendmail config issue).

View 8 Replies View Related

Fedora Servers :: Send Email From Command Line?

Mar 14, 2009

How to sending email from command line? Im just try send email look at below:

Code:
[root@fedora sniper]# echo "test" | mail -v -s test tazmanic76@hotmail.com
tazmanic76@hotmail.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.3/8.14.3; Sat, 14 Mar 2009 15:50:43 +0800
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
[Code]....

View 4 Replies View Related

Ubuntu Servers :: User Creation In Postfix - Cannot Send Or Receive Email

May 3, 2011

I used this tutorial to setup to setup iSpconfig postfix courier: [URL] but i cannot send or receive email:

[Code]....

Basically when i create users in ISPconfig, something goes wrong, mysql is running and i have postfix-mysql installed and running too.

[Code]...

View 2 Replies View Related

Ubuntu Servers :: Send Email From Command Line / Batch Script

Jul 1, 2011

Is there a way to send an email from a batch script. I want to send the output from a script to an email address, possibly a couple of email addresses depending on the output.

View 3 Replies View Related

Ubuntu Servers :: Postfix 'status=bounced' Unable To Send Email To A Domain?

Sep 8, 2010

After a reboot of my VPS, I keep getting the following error when sending email to my domain (hosted on Google Email). I can send to other email addresses but my own. So it seems like postfix thinks all mydomain.co.nz is to be sent internally?

Sep 9 09:25:05 mydomain postfix/pickup[20784]: 0316C3CC68: uid=1000 from=<sidb>
Sep 9 09:25:05 mydomain postfix/cleanup[20806]: 0316C3CC68: message-id=<20100908212505.0316C3CC68@mydomain.co.nz>
Sep 9 09:25:05 mydomain postfix/qmgr[20783]: 0316C3CC68: from=<sidb@mydomain.co.nz>, size=326, nrcpt=1 (queue active)[code].....

How do I tell postfix that mydomain.co.nz is to be sent to Google email server?

View 2 Replies View Related

Ubuntu Servers :: Setup An Email Client In Order To Send/receive Emails?

Oct 2, 2010

I want to setup an email client in order to send/receive emails, but since i am experiencing some issues with my ISP, i decided to setup an SMTP server with Postfix on my machine.The problem is that i can receive emails but i can not send.I read almost every thread in here refering to Postfix, but i could not find the problem on my configuration.So here it is..

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first

[code]....

View 6 Replies View Related

Server :: External SMTP Server With PHP / Send An Email Using An External Server?

Feb 9, 2011

I'm rather (VERY) inexperienced when it comes to Linux, but Fedora 14 is the environment I have to use on my laptop at work, so please forgive any dumb that comes out of me.

How do I tell php to send an email with mail() using an external mail server?

The situation: I've got apache/php running a webserver on my local machine. It's for dev purposes only, and the website files I'm using are checked out from our SVN. This lets me make changes to our website while not actually changing our website.

I've come across an issue I'm fixing where I need to verify that an email is successfully getting sent out, and unfortunately, this email is sent out using php's mail(), and not our website's usual $mail object. Unfortunately, I don't have the authority to change how this sends out right now, just when it sends out.

I've been running everything fine on my machine for a month now, and haven't needed the mail stuff until now. How do I tell php to send an email using an external server?

View 1 Replies View Related

Ubuntu Servers :: Sending Mail To External Email (Outside LAN)

Apr 14, 2010

I just setup a mail server on my web server and I cannot for the life of me figure out how to send emails to external (as in outside my LAN) emails or receive from external emails. I'm using Postfix with Dovecot and Squirrelmail. I get this delivery report in Squirrelmail when trying to send an email to my hotmail address.

Final-Recipient: rfc822; example@hotmail.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx3.hotmail.com
Diagnostic-Code: smtp; 550 DY-001 Mail rejected by Windows Live Hotmail for policy reasons. We generally do not accept email from dynamic IP's as they are not typically used to deliver unauthenticated SMTP e-mail to an Internet mail server. [URL] maintains lists of dynamic and residential IP addresses. If you are not an email/network admin please contact your E-mail/Internet Service Provider for help. Email/network admins, please visit [URL] for email delivery information and support.

View 3 Replies View Related

Ubuntu Servers :: Use The Mail Command Line Program To Occasionally Send Log Output To Email Aliases?

Jan 27, 2011

Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.

View 2 Replies View Related

Fedora Servers :: Postfix Does Not Receive External Email

Jan 14, 2010

I have been running an email server on a Red Hat 9 system for 5 years, and wanting to upgrade it to the latest Fedora OS. A few days ago it crashed. The server is running Fedora 11 (up-to-date). Clients are Fedora 11 and Windows XP machines using Thunderbird for accessing email. The server is running Postfix and Dovecot. Within my local network I can send and receive emails. I can also send email to addresses outside of my local network. The only problem is that I cannot receive any email from outside the local network. I cannot think of anything aside from my firewall (iptables) or postfix config that could be causing the problem.

Below are my iptables file, and the postfix main.cf changes that I have made.
Iptables (the same file I was using on Red Hat version 9 with one minor deprecated syntax changed):
*nat
:PREROUTING ACCEPT [22:1894]
:POSTROUTING ACCEPT [14:840]
:OUTPUT ACCEPT [17:1356]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
*filter .....

View 11 Replies View Related

Networking :: Sendmail Unable To Send Message To External Servers (e.g. Hotmail,gmail Etc)

Jun 30, 2011

I am trying to send an email by sendmail (ubuntu) to external servers, but unable to send. following is what i am trying to do and what i got the response:

sendmail -v xxx@hotmail/gmail.com < mail.test
where mail.test contains
[COLOR="rgb(105, 105, 105)"]
From: bla@bla.com

[code]....

View 2 Replies View Related

General :: Command Based Email Client To Send Email Through Secure Smtp?

Jul 26, 2010

In my Windows environment, I use email client such as Microsoft Outlook to connect to our email server to send email with the following configuration:

Incoming server (POP3): 995 - (requires with SSL)
Outgoing server (SMTP): 465 - (use encrypted connection SSL)

[code]....

And the mail server requires user ID login and password.how do I setup a text command based email client in my Linux (Centos 5.1) to send out email through the existing email server above, which is in another machine? The email client has to be text command based because I need to use command line to send notification email from anothar application installed in my Linux (Centos 5.1) Since the email client will only be used to send email notification, I don't require setting up of an email server in my linux.

View 2 Replies View Related

Server :: Allow Unsubscribed Email Address To Send Email To Mailman List?

Jul 1, 2010

is there a way to allow unsubscribed email address to send emails to mailman list without having to manually set a filter for that email address?

View 1 Replies View Related

Software :: Apache Virtual Host Send Email Without Email Server?

Jun 3, 2009

Debian 5, apache 2.2 I've got Apache up and hosting multiple sites. Each site will have a php contact me page that will simply dump an email to a fixed address. What program should i be using to accomplish this? I've used nullmailer before but that assumes you have a fixed smarthost somewhere which I don't.

View 6 Replies View Related

OpenSUSE :: Sending Email Using PHP / Application Fails To Send An Email?

Feb 23, 2010

I'm attempting to send email used a textbook PHP application. The application fails to send an email.Do I need to setup an email server to get the ap to work?Right now, I'm getting email through Kontact via my web host, Yahoo mail and Google mail.

View 2 Replies View Related

Networking :: Two Hosts On DDNS - Can Send Two Domains Through One Router

Feb 11, 2011

I have two virtual hosts that I want to be able to send through one router. I have two seperate dynamic hostnames on dyndns.

Apparently my router allows me to enter two seperate hostnames locally as well: DynDNS Host and Domain Name

Code:

How do I tell the router which is which? Currently I see the same site with both URLs

Do I have to set one vhost to do some 'funky' stuff (black hole in my head when it comes to static routes or BIND? ). And then set the other vhost to host both sites?

I'm running CentOS and an apache webserver. I want to demo a web site 'externally' from two different sub-domains.

I've looked high and low but most examples don't seem to be simply trying to put two different web-sites up to two Dynamic DNS Hosts.

It must be possible, all the pieces are there. I'm just missing the link!

View 10 Replies View Related

General :: Restrict Users To Send Mail To Outside Domains

May 28, 2011

How to restrict users to send mail to outside domains in qmail server, i have centos and qmail installed

View 14 Replies View Related

Server :: Send And Receive E-mails To And From An Array Of Virtual Domains?

Jan 4, 2010

I've set up a fully functional e-mail server and can send and receive e-mails to and from an array of virtual domains without a problem. The only hiccup I have is that only root is able to send e-mails via mutt. I have not stipulated a sendmail line in the mutt configuration so it's sending e-mail with default configuration. How can I get it so that all users on the server can send outgoing e-mails via mutt?

Update: Solved this by following this http://inmyplace.info/2008/05/07/pos...ission-denied/

View 1 Replies View Related

Server :: Email Notification - Heartbeat To Send Email When The Slave Server Becomes The Master?

May 3, 2010

Have someone used Linux heartbeat to send email when the Slave server becomes the Master? I've read I can configure the MailTo under.

But I really don't know how to do it. I basically need my primary server to send an email when it becomes inactive and all the activities are manage by the secondary node.

View 7 Replies View Related

Server :: Postfix Not Delivering Mail To External Domains?

May 23, 2009

i have configured postfix to deliver mail from an internal mail server to external domains... however i keep getting this errors

Code:

un 10 23:23:59 smtpserver postfix/local[28831]: 7800CF0058: to=<root@smtpserver.domain>, orig_to=<postmaster>, relay=local, delay=0, status=sent (delivered to mailbox)
Jun 10 23:23:59 smtpserver postfix/qmgr[5989]: 7800CF0058: removed
Jun 10 23:25:19 smtpserver postfix/smtpd[28824]: connect from unknown[192.168.5.22]

[code]....

View 2 Replies View Related

General :: Copy And Forward Email To Multiple Email Servers Using Postfix?

Dec 31, 2009

I have an email setup where all of the emails from our email host is downloaded to our Linux server using Fetchmail. Then some of the incoming emails are sent to an MS exchange server (server1.domain.com) using Postfix. What i want to do is to send a copy of all emails to Another server (server2.domain.com) for redundancy.Can postfix be configured to send copies out to both?

View 1 Replies View Related

Server :: Routing Inbound Email To Multiple Email Servers?

Dec 21, 2009

I have recently setup a new mail server and have simulated sending and receiving on the new email server. The new email server will replace the primary one.I would like to setup the new email server in parallel with the existing one.This way i can observe issues that might occur and be aware of what could go wrong. I want to received mail to be delivered to both mail servers at the same time.I would like to use postfix, exim i find a bit to difficult to understand.I have thought of using transport maps, the only problem is that you can only forward mail to one server at a time using transport maps.I think recipient_bcc_maps and sender_bcc_maps could work, i would just like ideas of how i can do this.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved