
8th January 2009, 05:42
|
|
Member
|
|
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How to alllow an email address to send email but not recieve emal
Hi,
I am creating an autentication system, i want to turn one of my accounts into a sender account. but stop all external emails from being recieved by it.
|

9th January 2009, 12:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
You could create a new alias in /etc/aliases:
Code:
username: /dev/null
(Replace username with the username of the account.)
Run afterwards and restart Postfix.
|

9th January 2009, 12:46
|
|
Member
|
|
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
is the username with the @mydomain.com??
cause i have tried both with out the @ and with and i can still sendmail to the account.
I tried what u said but i got this instead
mydomain_mailer@mydomain.com... cannot alias non-local names
|

10th January 2009, 12:43
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
It's the system user name of that account (works unless you have a virtual user setup).
|

10th January 2009, 12:49
|
|
Member
|
|
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Is there any work around for a virtual account?
|

11th January 2009, 14:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
You could forward the mail to a system user and then send that mail to /dev/null using the aliases file.
|

11th January 2009, 15:49
|
|
Member
|
|
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
but that means mail is still recieved by the virtual email client right?
How do i set up a local account to accept or send mail?
Can i access this local account through pop3 and smtp?
|

12th January 2009, 14:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
Originally Posted by tyliong
How do i set up a local account to accept or send mail?
|
Take a look here: http://www.howtoforge.com/forums/showthread.php?t=2
Quote:
Originally Posted by tyliong
Can i access this local account through pop3 and smtp?
|
Yes.
|

15th January 2009, 02:17
|
|
Member
|
|
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart
if i do these commands will all my virtual users be disabled? and only local accounts will recieve email?
do i need to modify any of the values here or i just literally take all the values u stated?
|

15th January 2009, 14:23
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
If you're currently using Maildir, you can use these settings. If you're using mbox, you shouldn't use them.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:25.
|
Recent comments
1 day 8 hours ago
1 day 10 hours ago
1 day 22 hours ago
2 days 1 hour ago
2 days 5 hours ago
2 days 11 hours ago
2 days 21 hours ago
2 days 22 hours ago
3 days 7 hours ago
3 days 8 hours ago